bluewiz
bluewiz
CodeHolic
39 posts
Don't wanna be here? Send us removal request.
bluewiz Β· 10 years ago
Text
ProtocolBuffers 2.6.x μ‚¬μš©ν•˜κΈ°
Objective C μ–Έμ–΄λ‘œ ProtocolBuffers 2.2.x λ₯Ό μ΄μš©ν•΄ λ§Œλ“€μ—ˆλ˜ ν”„λ‘œκ·Έλž¨μ„ 2.6.x λ²„μ „μœΌλ‘œ λ§Œλ“€λ©° ν–ˆλ˜ μ‚½μ§ˆκΈ° 정리
https://github.com/alexeyxo/protobuf-objc ν”„λ‘œμ νŠΈ 이용
git clone λͺ…λ ΉμœΌλ‘œ λ‚΄λ €λ°›μ•„ Xcode λ₯Ό μ΄μš©ν•΄ λΉŒλ“œ
κΈ°μ‘΄ ν”„λ‘œμ νŠΈμ— ProtocolBuffers ν”„λ‘œμ νŠΈ μΆ”κ°€
#import "ProtocolBuffers.h" ν˜•μ‹μœΌλ‘œ λ³€κ²½
Message_Builder λ“± _Builder κ°€ λΆ™μ–΄μžˆλ˜ 클래슀 이름을 λͺ¨λ‘ MessageBuilder ν˜•μ‹μœΌλ‘œ λ³€κ²½
"Build Setting" - "Search Paths" - "Header Search Paths" 에 "protobuf-objc/src/runtime" μΆ”κ°€ ν›„ recursive 선택
"Build Phases" - "Target Dependencies" 에 ProtocolBuffers μΆ”κ°€
"Build Phases" - "Link Binary With Libraries" 에 "libProtocolBuffers.a" μΆ”κ°€ (protobuf-objc/src/runtime/Build/Products/Debug 밑에 있음)
1 note Β· View note
bluewiz Β· 10 years ago
Text
Telegram-cli μ‚¬μš©λ²• λ³€κ²½
μ‹œμŠ€ν…œ λ°±μ—… 후에 telegram-cli λ₯Ό μ΄μš©ν•΄ λ©”μ‹œμ§€λ₯Ό 남기도둝 ν•΄λ’€λŠ”λ°, μ–΄λŠ μˆœκ°„λΆ€ν„° μ•„λ¬΄λŸ° λ©”μ‹œμ§€κ°€ μ—†κΈΈλž˜ μ™œ κ·ΈλŸ°μ§€ μ°Ύμ•„λ³΄μ•˜λ‹€.
(λ¬Όλ‘  telegram-cli μžμ²΄λ„ μ΅œμ‹  λ²„μ „μœΌλ‘œ λ‹€μ‹œ λΉŒλ“œ)
μ°Ύμ•„λ‚Έ 원인은 "msg" λͺ…λ Ή μ‚¬μš© 전에 "contact_list" λͺ…령을 μ‹€ν–‰ν•΄μ•Ό ν•œλ‹€λŠ” 것.
κΈ°μ‘΄μ—λŠ” "msg [받을 μ‚¬λžŒ] [λ©”μ‹œμ§€]" μ΄λ ‡κ²Œ λ³΄λ‚΄λŠ” κ²ƒμœΌλ‘œ μΆ©λΆ„ν–ˆλŠ”λ°, μ΄μ œλŠ” "contact_list" λ₯Ό λ¨Όμ € μ‹€ν–‰ν•΄μ„œ μ—°λ½μ²˜ λͺ©λ‘μ„ 받아와야 ν•œλ‹€.
κ·Έλž˜μ„œ λ³€κ²½ν•œ λͺ…령은 μ•„λž˜μ™€ κ°™λ‹€.
$ (echo "contact_list"; sleep 3; echo "msg [μˆ˜μ‹ μž] [λ©”μ‹œμ§€]"; echo "safe_quit") | telegram-cli -k tg-server.pub -W μ•„λ‹ˆλ©΄ $ (echo "contact_list"; sleep 3; echo "msg [μˆ˜μ‹ μž] [λ©”μ‹œμ§€]"; sleep 1; echo "quit") | telegram-cli -k tg-server.pub -W
쀑간에 sleep 3 은 contact list λ°›μ•„μ˜€λŠ” 것을 μž μ‹œ 기닀리기 μœ„ν•΄ μΆ”κ°€.
1 note Β· View note
bluewiz Β· 10 years ago
Text
Zookeeper λ…Έλ“œ μ ‘κ·Ό μ œμ–΄
μ ‘κ·Ό μ œμ–΄
μ ‘κ·Ό μ œμ–΄λ₯Ό ν•˜κ³ μž ν•˜λŠ” λ…Έλ“œλ₯Ό 생성할 λ•Œ 인증 정보와 κΆŒν•œμ„ 같이 λ„˜κ²¨μ€Œ
ν•΄λ‹Ή λ…Έλ“œμ— μ ‘κ·Όν•˜λ €λ©΄ addauth λ₯Ό μ΄μš©ν•΄ 인증 정보 제곡
μ ‘κ·Ό μ œμ–΄ μ„€μ •
[zk: localhost:2181(CONNECTED) 0] addauth digest zk-user:12341234 [zk: localhost:2181(CONNECTED) 1] create /app/p1 "P1" auth:zk-user:12341234:crdwa Created /app/p1 [zk: localhost:2181(CONNECTED) 2] create /app/p1/v1 "P1:V1" auth:zk-user:12341234:crdwa Created /app/p1/v1 [zk: localhost:2181(CONNECTED) 3] getAcl /app/p1/v1 'digest,'zk-user:LzfOnZbO40R1AwIypLc2nWAXRFo= : cdrwa [zk: localhost:2181(CONNECTED) 4] get /app/p1/v1 "P1:V1" ...
λ‹€λ₯Έ ν΄λΌμ΄μ–ΈνŠΈμ—μ„œ μ ‘κ·Ό μ œμ–΄ 확인
[zk: localhost:2181(CONNECTED) 0] get /app/p1/v1 Authentication is not valid : /app/p1/v1 [zk: localhost:2181(CONNECTED) 1] get /app/p1 Authentication is not valid : /app/p1
인증 정보 제곡
[zk: localhost:2181(CONNECTED) 2] addauth digest zk-user:password [zk: localhost:2181(CONNECTED) 3] get /app/p1/v1 "P1:V1" ...
1 note Β· View note
bluewiz Β· 11 years ago
Text
Telegram CLI λ₯Ό νŒŒμ΄μ¬μ—μ„œ ν˜ΈμΆœν•΄ μ‚¬οΏ½οΏ½ν•˜κΈ°
Telegram-cli λ₯Ό μ„€μΉ˜ν•˜κ³  Python μ—μ„œ ν˜ΈμΆœν•΄ μ‚¬μš©ν•  수 있게 ν•΄μ£ΌλŠ” λ‹€μ–‘ν•œ λΌμ΄λΈŒλŸ¬λ¦¬λ“€μ΄ μžˆλŠ”λ°, 맀우 κ°„λ‹¨ν•˜κ²Œ κ·Έλƒ₯ telegram-cli λ₯Ό os.system() λ©”μ†Œλ“œλ‘œ 직접 ν˜ΈμΆœν•΄ μ‚¬μš©ν•œλ‹€.
telegram-cli νŒŒμΌμ€ /home/user/bin 디렉토리에 있고, tg-server.pub νŒŒμΌμ€ /etc 밑에 볡사해 λ‘μ—ˆλ‹€.
μ‹€μ œ λ©”μ†Œλ“œλŠ” μ•„λž˜μ™€ κ°™λ‹€.
def send_msg_to_telegram(username, msg): send_cmd = '(echo "msg %s %s"; echo "safe_quit") | telegram-cli -k /etc/tg-server.pub -W' % ( username, msg) os.system(send_cmd) send_msg_to_telegram('username', 'Message')
-W μ˜΅μ…˜μ€ telegram-cli μ‹€ν–‰ 후에 'dialog_list' λͺ…령을 보내 λŒ€ν™”λ°© λͺ©λ‘μ„ μ–»μ–΄μ˜¨ λ‹€μŒμ— μœ„ λͺ…령을 μ‹€ν–‰ν•˜λ„λ‘ ν•œλ‹€.
-W send dialog_list query and wait for answer before reading input
safe_quit λͺ…령은 λͺ¨λ“  전솑이 이루어진 이후에 ν”„λ‘œκ·Έλž¨μ„ μ’…λ£Œν•˜λ„λ‘ ν•œλ‹€.
safe_quit wait for all queries to end then quit
1 note Β· View note
bluewiz Β· 11 years ago
Text
CentOS 5 μ—μ„œ Telegram CLI μ‚¬μš©ν•˜κΈ°
tg 전체 μ½”λ“œλ₯Ό clone λ°›μ•„ μ €μž₯
$ git clone https://github.com/vysheng/tg.git
λΉŒλ“œν•  λ•Œ μ‚¬μš©ν•  라이브러리λ₯Ό μΆ”κ°€ (libreadline 을 λͺ»μ°ΎλŠ” 문제 ν•΄κ²°)
$ export LDFLAGS="-lncursesw "
libconfig κ΄€λ ¨ νŒ¨ν‚€μ§€λ₯Ό λ°›μ•„ μ„€μΉ˜
$ sudo rpm -Uvh http://damsl.cs.indiana.edu/yum/centos/5/x86_64/libconfig-1.4.8-1.x86_64.rpm $ sudo rpm -Uvh http://damsl.cs.indiana.edu/yum/centos/5/x86_64/libconfig-devel-1.4.8-1.x86_64.rpm
configure λͺ…λ Ή μ‹€ν–‰ ν›„ λΉŒλ“œ
$ ./configure && make
telegram-cli 파일과 κ³΅κ°œν‚€ νŒŒμΌμ„ μ λ‹Ήν•œ 디렉토리에 볡사
$ cp ./bin/* ~/bin $ sudo cp tg-server.pub /etc/tg-server.pub
telegram-cli λͺ…λ Ή μ‹€ν–‰
$ telegram-cli -k /etc/tg-server.pub
Refenences
https://github.com/vysheng/tg/issues/26
https://github.com/vysheng/tg/issues/144
1 note Β· View note
bluewiz Β· 11 years ago
Text
Hadoop 2.x 버전 ν™˜κ²½ ꡬ좕 쀑에 λ§Œλ‚œ 였λ₯˜
Hadoop 2.4 버전을 λ°›μ•„ 압좕을 ν’€κ³  μ„€μ • 파일 λ‚΄μš©μ„ μ±„μš΄ 후에 μ‹œμž‘ν•˜λ € ν–ˆμœΌλ‚˜ μ•„λž˜μ™€ 같은 였λ₯˜ λ©”μ‹œμ§€λ₯Ό 좜λ ₯ν•˜λ©΄μ„œ 더 이상 진행이 λ˜μ§€ μ•Šμ•˜λ‹€.
/opt/hadoop$ sbin/start-all.sh This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh 14/06/17 02:04:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [OpenJDK 64-Bit Server VM warning: You have loaded library /opt/hadoop-2.4.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. localhost] sed: -e expression #1, char 6: unknown option to `s' 64-Bit: ssh: Could not resolve hostname 64-Bit: Name or service not known OpenJDK: ssh: Could not resolve hostname OpenJDK: Name or service not known warning:: ssh: Could not resolve hostname warning:: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known You: ssh: Could not resolve hostname You: Name or service not known guard.: ssh: Could not resolve hostname guard.: Name or service not known will: ssh: Could not resolve hostname will: Name or service not known try: ssh: Could not resolve hostname try: Name or service not known VM: ssh: Could not resolve hostname VM: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known stack: ssh: Could not resolve hostname stack: Name or service not known might: ssh: Could not resolve hostname might: Name or service not known disabled: ssh: Could not resolve hostname disabled: Name or service not known highly: ssh: Could not resolve hostname highly: Name or service not known the: ssh: Could not resolve hostname the: Name or service not known loaded: ssh: Could not resolve hostname loaded: Name or service not known which: ssh: Could not resolve hostname which: Name or service not known library: ssh: Could not resolve hostname library: Name or service not known ....
Stack Overflow μ—μ„œ μœ„ λ¬Έμ œμ— λŒ€ν•œ 질문과 닡을 μ°Ύμ•˜λ‹€.
http://stackoverflow.com/questions/20144371/hadoop-2-2-0-setup-pseudo-distributed-mode-error-warn-util-nativecodeloader?rq=1
ν•΄κ²° 방법은 hadoop-env.sh νŒŒμΌμ— μ•„λž˜ 두 쀄을 μΆ”κ°€ν•˜λ©΄ λœλ‹€.
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native export HADOOP_OPTS="${HADOOP_OPTS} -Djava.library.path=$HADOOP_PREFIX/lib"
0 notes
bluewiz Β· 11 years ago
Text
Java split() λ©”μ†Œλ“œ μ„±λŠ₯ 비ꡐ
split() λ©”μ†Œλ“œ μ„±λŠ₯을 λΉ„κ΅ν•˜λŠ” λΈ”λ‘œκ·Έ κΈ€(Guava Splitter vs StringUtils)을 보고 κ°„λ‹¨ν•œ ν…ŒμŠ€νŠΈ ν”„λ‘œκ·Έλž¨μ„ μž‘μ„±ν•΄ λ³΄μ•˜λ‹€. μ•„λž˜ ν”„λ‘œκ·Έλž¨μ€ String.split(), StringUtils.split(), Guava Splitter.split() λ©”μ†Œλ“œλ₯Ό μ΄μš©ν•΄ λ¬Έμžμ—΄μ„ 곡백으둜 λΆ„λ¦¬ν•˜κ³  λ¬Έμžμ—΄ 길이λ₯Ό ν™•μΈν•œλ‹€.
import com.google.common.base.Splitter; import org.apache.commons.lang.StringUtils; public class SplitPerformance { public Long[] doPerformanceTest(int repeatCount) { String log = "2013-03-19 10:00:06 10.1.1.60 - - - 10.2.1.213 80 GET " + "/images/400x280.jpg - 200 1 4008054 21400 - 1 " + "HTTP/1.1 image.unknown.net - - - 1 - 1 1 image/jpeg 1342 400 - - 1"; long before, after; before = System.currentTimeMillis(); for (int i = 0; i < repeatCount; ++i) { String[] logList = log.split(" "); for (String aLogList : logList) { int len = aLogList.length(); } } after = System.currentTimeMillis(); long stringSplit = after - before; before = System.currentTimeMillis(); for (int i = 0; i < repeatCount; ++i) { String[] logList = StringUtils.split(log); for (String aLogList : logList) { int len = aLogList.length(); } } after = System.currentTimeMillis(); long stringUtilsSplit = after - before; Splitter splitter = Splitter.on(" "); before = System.currentTimeMillis(); for (int i = 0; i < repeatCount; ++i) { Iterable<String> logIterator = splitter.split(log); for (String aLogList : logIterator) { int len = aLogList.length(); } } after = System.currentTimeMillis(); long guavaSplitterSplit = after - before; return new Long[] { stringSplit, stringUtilsSplit, guavaSplitterSplit }; } public void printResult(int repeatCount, Long[] results) { System.out.println( String.format("%d\t%d\t%d\t%d", repeatCount, results[0], results[1], results[2])); } public static void main(String[] args) { SplitPerformance splitPerformance = new SplitPerformance(); System.out.println("Repeat\tString.split()\tStringUtils.split()\tSplitter.split()"); for (int repeat = 10; repeat <= 10000000; repeat *= 10) { Long[] results = splitPerformance.doPerformanceTest(repeat); splitPerformance.printResult(repeat, results); } } }
μ‹€ν–‰ κ²°κ³ΌλŠ” λ‹€μŒκ³Ό κ°™λ‹€
Repeat String.split() StringUtils.split() Splitter.split() 10 3 7 2 100 13 7 12 1000 64 5 55 10000 128 23 30 100000 208 103 175 1000000 2111 979 2065 10000000 22318 10052 19357
μ•žμ—μ„œλΆ€ν„° μˆœμ„œλŒ€λ‘œ String.split(), StringUtils.split(), Guava Splitter.split() λ©”μ†Œλ“œ μ‹€ν–‰ 결과이며, μ‹€ν–‰ μ‹œκ°„μ„ λ‚˜νƒ€λ‚΄κΈ° λ•Œλ¬Έμ— μˆ«μžκ°€ μž‘μ„ 수둝 μ’‹λ‹€.
Splitter.split() μ‹€ν–‰ κ²°κ³Όκ°€ 생각보닀 느리게 λ‚˜μ™”λŠ”λ°, μ•„λ¬΄λž˜λ„ Iterator λ₯Ό μ΄μš©ν•΄ λ¬Έμžμ—΄μ— μ ‘κ·Όν•˜κΈ° λ•Œλ¬Έμ΄ μ•„λ‹Œκ°€ μƒκ°λœλ‹€.
1 note Β· View note
bluewiz Β· 11 years ago
Text
MRUnit 으둜 MultipleOutputs λ₯Ό μ‚¬μš©ν•˜λŠ” M/R ν…ŒμŠ€νŠΈ μ½”λ“œ μž‘μ„±ν•˜κΈ°
MRUnit 1.0.0 λ²„μ „μ—μ„œλŠ” MultipleOutputs λ₯Ό μ‚¬μš©ν•œ M/R μ½”λ“œλ₯Ό ν…ŒμŠ€ν•  수 μžˆλŠ” κΈ°λŠ₯이 μ œκ³΅λ˜μ§€ μ•ŠλŠ”λ‹€. ν•˜οΏ½οΏ½λ§Œ 이와 κ΄€λ ¨λœ 이슈 MRUnit-13 λ₯Ό μ‚΄νŽ΄λ³΄λ©΄ κΈ°λŠ₯ μΆ”κ°€κ°€ μ™„λ£Œλ˜μ—ˆκ³ , λ‹€μŒ 버전(1.1.0)에 μΆ”κ°€λ˜μ–΄ λ‚˜μ˜¬ κ²ƒμ΄λΌλŠ” κ±Έ μ•Œ 수 μžˆλ‹€.
ν•˜μ§€λ§Œ, λ‹Ήμž₯ Unit test λ₯Ό μž‘μ„±ν•˜κ³  κ²€μ¦ν•˜λŠ”λ° μ΄μš©ν•΄μ•Ό ν•˜λŠ” 상황이라면 개발 쀑인 버전을 λ°›μ•„ μ‚¬μš©ν•΄λ³Ό 수 μžˆλ‹€.
MRUnit μ„€μΉ˜ μ „ ν™˜κ²½ ꡬ좕
ν”„λ‘œμ νŠΈ λΉŒλ“œ ν™˜κ²½μ€ Mac OS X 10.9 Mavericks 이며, Maven 2 와 Java 7 을 μ΄μš©ν•œλ‹€.
Maven 2 μ„€μΉ˜ (Maven 3 μœΌλ‘œλŠ” λΉŒλ“œκ°€ λ˜μ§€ μ•Šμ•˜μŒ)
$ brew install maven2
Java 7 μ„€μΉ˜
http://www.oracle.com/technetwork/java/javase/downloads/index.html
μ˜μ‘΄μ„±μ„ κ°€μ§„ 라이브러리 (Maven Repository)
junit 4.10
guava 11.0.2
hadoop-common 2.3.0
hadoop-mapreduce-client-core 2.3.0
powermock-core 1.5.1
powermock-api-mockito 1.5.1
powermock-module-junit4 1.5.1
powermock-module-junit4-common 1.5.1
MRUnit μ„€μΉ˜
SOURCE AND GUIDE νŽ˜μ΄μ§€ μ°Έμ‘°.
μ €μž₯μ†Œμ—μ„œ μ΅œμ‹  μ†ŒμŠ€ μ½”λ“œ λ‹€μš΄λ‘œλ“œ
$ git clone http://git-wip-us.apache.org/repos/asf/mrunit.git
Maven 을 μ΄μš©ν•΄ ν”„λ‘œμ νŠΈ λΉŒλ“œ
$ mvn package -Dhadoop.version=2 -Drat.numUnapprovedLic enses=128
λΉŒλ“œμ— μ„±κ³΅ν•˜λ©΄ target 디렉토리 λ°‘μ—μ„œ mrunit-1.2.0-SNAPSHOT-hadoop2.jar νŒŒμΌμ„ 찾을 수 μžˆλ‹€. (버전 μ •λ³΄λŠ” λ‹¬λΌμ§ˆ 수 있음)
Unit test μž‘μ„±
Unit test λ₯Ό μž‘μ„±ν•  λ•Œ mrunit/src/test 밑에 μžˆλŠ” μ½”λ“œλ₯Ό μ°Έμ‘°ν•œλ‹€. (MultipleOutputs 에 λŒ€ν•œ ν…ŒμŠ€νŠΈλŠ” test/java/org/apache/hadoop/mrunit/mapreduce/TestMultipleOutput.java μ°Έμ‘°)
@RunWith(PowerMockRunner.class) @PrepareForTest({MultipleOutputs.class, MyMap.class}) public class TestMyMap { private MapDriver<LongWritable, Text, Text, IntWritable> mapDriver; ... @Test public void testMyMapWithMultipleOutputs() throws Exception { mapDriver = MapDriver.newMapDriver(new MyMap()); mapDriver.withInput(new LongWritable(0), new Text("first")); mapDriver.withMultiOutput("OUT1", new Text("first"), new IntWritable(1)); mapDriver.runTest(); } ... }
@PrepareForTest() μ•ˆμ— MultipleOutputs ν΄λž˜μŠ€μ™€ ν…ŒμŠ€νŠΈν•˜κ³ μž ν•˜λŠ” Mapper, Reducer λ₯Ό λͺ…μ‹œν•΄λ‘”λ‹€.
withMultiOutput() λ©”μ†Œλ“œλ₯Ό μ΄μš©ν•΄ MultipleOutputs 둜 좜λ ₯ν•˜λŠ” Mapper/Reducer ν…ŒμŠ€νŠΈ μ½”λ“œλ₯Ό μž‘μ„±ν•œλ‹€. 첫 번째 μΈμžμ—λŠ” NamedOutput 에 μ‚¬μš©ν•œ 이름을 λ„˜κ²¨μ£Όκ³ , 두 λ²ˆμ§Έμ™€ μ„Έ 번째 μΈμžμ—λŠ” 결과둜 μ˜ˆμƒλ˜λŠ” Key/Value λ₯Ό λ„˜κ²¨μ€€λ‹€.
0 notes
bluewiz Β· 12 years ago
Text
마λ₯΄ν‹΄ λ‹ˆλ¬„λŸ¬..."독일에 처음 λ‚˜μΉ˜κ°€ λ“±μž₯ν–ˆμ„ λ•Œ..."
μ²˜μŒμ— 그듀은 κ³΅μ‚°μ£Όμ˜μžλ“€μ„ μž‘μ•„κ°”μŠ΅λ‹ˆλ‹€.
κ·ΈλŸ¬λ‚˜ λ‚˜λŠ” μΉ¨λ¬΅ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
μ™œλƒν•˜λ©΄ λ‚˜λŠ” κ³΅μ‚°μ£Όμ˜μžκ°€ μ•„λ‹ˆμ—ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.
그리고 그듀은 μœ νƒœμΈλ“€μ„ μž‘μ•„κ°”μŠ΅λ‹ˆλ‹€.
κ·ΈλŸ¬λ‚˜ λ‚˜λŠ” μΉ¨λ¬΅ν–ˆμŠ΅λ‹ˆλ‹€.
μ™œλƒν•˜λ©΄ λ‚˜λŠ” μœ νƒœμΈμ΄ μ•„λ‹ˆμ—ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.
그리고 κ·Έ λ‹€μŒμ—” λ…Έλ™μš΄λ™κ°€λ“€μ„ μž‘μ•„κ°”μŠ΅λ‹ˆλ‹€.
λ‚˜λŠ” μ΄λ•Œλ„ μ—­μ‹œ μΉ¨λ¬΅ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
μ™œλƒν•˜λ©΄ λ‚˜λŠ” λ…Έλ™μš΄λ™κ°€κ°€ μ•„λ‹ˆμ—ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.
그리고 μ΄μ œλŠ” 카톨릭 ꡐ도듀을 μž‘μ•„κ°”μŠ΅λ‹ˆλ‹€.
κ·ΈλŸ¬λ‚˜ λ‚˜λŠ” μΉ¨λ¬΅ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
μ™œλƒν•˜λ©΄ λ‚˜λŠ” κΈ°λ…κ΅μΈμ΄μ—ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.
그러던 μ–΄λŠ λ‚  그듀은 λ‚˜λ₯Ό 작으러 μ™”μŠ΅λ‹ˆλ‹€.
ν•˜μ§€λ§Œ 이미 λ‚΄ μ£Όμœ„μ—λŠ” λ‚˜λ₯Ό μœ„ν•΄
이야기해 쀄 μ‚¬λžŒμ΄ 아무도 남아 μžˆμ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.
λ§ˆν‹΄ λ‹ˆλ¬„λŸ¬
2 notes Β· View notes
bluewiz Β· 12 years ago
Text
[μ „λ¬Έ]λ‚¨λΆμ •μƒνšŒλ‹΄ λŒ€ν™”λ‘ 초본 λ…Έλ¬΄ν˜„ 前 λŒ€ν†΅λ Ή μˆ˜μ • 의견
수고 λ§Žμ•˜μŠ΅λ‹ˆλ‹€.
μ½μ–΄λ³΄λ‹ˆ λ‚΄κ°€ κΈ°μ–΅ν•˜μ§€ λͺ»ν•˜κ³  μžˆλŠ” 일이 생각보닀 λ§Žλ‹€λŠ” λŠλ‚Œμž…λ‹ˆλ‹€.
그리고 NLL λ¬Έμ œλŠ” 김정일 μœ„μ›μž₯도 μΆ”ν›„ λ‹€λ£¨λŠ” 것을 λ™μ˜ν•œ κ²ƒμœΌλ‘œ μƒκ°ν•˜κ³  μžˆμ—ˆλŠ”λ°, ν™•μ‹€ν•˜μ§€ μ•Šκ³  였히렀 λ‚΄κ°€ μž„κΈ° 내에 NLL 문제λ₯Ό ν•΄κ²°ν•  수 μžˆλ‹€κ³  λ§ν•œ κ²ƒμœΌλ‘œ λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. μ•žμœΌλ‘œ 이 문제λ₯Ό λ‹€λ£° λ•Œ μ§€ν˜œλ‘­κ²Œ 닀루어 μ£Όμ–΄μ•Ό ν•  것 κ°™μŠ΅λ‹ˆλ‹€.
κ·Έ λ°–μ˜ οΏ½οΏ½οΏ½μ œλŠ” λ‹€ 곡개된 λŒ€λ‘œμž…λ‹ˆλ‹€λ§Œ μ•žμœΌλ‘œ ν•΄λ‹Ή λΆ„μ•Όλ₯Ό λ‹€λ£° μ±…μž„μžλ“€μ€ λŒ€ν™” λ‚΄μš©κ³Ό λΆ„μœ„κΈ°λ₯Ό 잘 μ•„λŠ” 것이 ν•„μš”ν•  κ²ƒμž…λ‹ˆλ‹€. κ·ΈλŸ¬λ―€λ‘œ μ•žμœΌλ‘œ νšŒλ‹΄μ„ μ±…μž„μ§ˆ 총리, κ²½μ œλΆ€μ΄λ¦¬, κ΅­λ°©μž₯κ΄€ 등이 κ³΅μœ ν•΄μ•Ό ν•  λ‚΄μš©μ΄ λ§Žμ€ 것 κ°™μŠ΅λ‹ˆλ‹€ 톡일뢀 μž₯κ΄€, ꡭ정원μž₯ 등은 λ™μ„ν•œ μ‚¬λžŒλ“€μ΄κ³  이미 κ°€μ§€κ³  μžˆκ² μ§€μš”? μ•„λ‹ˆλΌλ©΄ μ—­μ‹œ κ³΅μœ ν•΄μ•Ό ν•  κ²ƒμž…λ‹ˆλ‹€.
ν•„μš”ν•œ λ‚΄μš©λ“€μ„ λŒ€ν™”λ‘ κ·ΈλŒ€λ‘œ λ‚˜λˆ„μ–΄ μ£Όμ–΄μ•Ό ν•  것 κ°™μŠ΅λ‹ˆλ‹€. λ‚΄μš©λΏλ§Œ μ•„λ‹ˆλΌ λΆ„μœ„κΈ°λ„ 이해할 ν•„μš”κ°€ μžˆμ„ κ²ƒμ΄λ‹ˆκΉŒμš”.
μ œκ³΅ν•  μ‚¬λžŒμ˜ λ²”μœ„, λŒ€ν™”λ‘ 전체λ₯Ό 쀄 것인지 ν•„μš”ν•œ 뢀뢄을 μž˜λΌμ„œ 쀄 것인지, λ³΄μ•ˆμ„ μ–΄λ–»κ²Œ ν•  κ²ƒμΈμ§€λŠ” μ•ˆλ³΄μ‹€μ΄ μ±…μž„μ„ μ§€κ³  νŒλ‹¨ν•΄ μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.
이 녹취둝은 λˆ„κ°€ μ±…μž„μ§€κ³  ν•œ 자, ν•œ 자 μ •ν™•ν•˜κ²Œ 닀듬고, λ…Ήμ·¨λ‘λ§ŒμœΌλ‘œ μ΄ν•΄ν•˜κΈ° μ–΄λ ΅κ±°λ‚˜ μ˜€ν•΄κ°€ λ°œμƒν•  κ°€λŠ₯성이 μžˆλŠ” 뢀뢄은 각주λ₯Ό λ‹¬μ•„μ„œ μ •ν™•μ„±, 완성도가 높은 λŒ€ν™”λ‘μœΌλ‘œ μ •λ¦¬ν•˜μ—¬ 이지원에 올렀 λ‘μ‹œκΈ° λ°”λžλ‹ˆλ‹€.
62νŽ˜μ΄μ§€ β€˜μžμœ„λ ₯μœΌλ‘œβ€™λŠ” β€˜μžμ˜μ μœΌλ‘œβ€™μ˜ μ˜€κΈ°μž…λ‹ˆλ‹€. 63νŽ˜μ΄μ§€ 상단, β€˜λ‚¨μΈ‘μ˜ μ§€λ„μžκ»˜μ„œλ„β€™λΌλŠ” ν‘œν˜„μ€ 이해가 λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€-그밖에도 μ •ν™•ν•˜μ§€ μ•Šκ±°λ‚˜ λͺ¨ν˜Έν•œ 뢀뢄이 μ—†λŠ” 것은 μ•„λ‹ˆμ§€λ§Œ μ‹œκ°„λ„ μ—†κ³  이 λΆ€λΆ„λ§ŒνΌ μ€‘μš”ν•˜μ§€ μ•Šμ•„μ„œ 이 λΆ€λΆ„λ§Œ 지적해 λ‘‘λ‹ˆλ‹€.
이 μž‘μ—…μ—λŠ” μˆ˜μ„, μ‹€μž₯ λͺ¨λ‘ κΌΌκΌΌν•˜κ²Œ 검증과정을 κ·Έμ³μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.
071020 λŒ€ν†΅λ Ή
3 notes Β· View notes
bluewiz Β· 12 years ago
Text
μš”μ¦˜ μ‚¬μš©ν•˜κ³  μžˆλŠ” μ»¬λŸ¬μ…‹
http://ethanschoonover.com/solarized
Tumblr media Tumblr media
λˆˆμ— νŽΈν•˜κ³  색상도 λ§˜μ— λ“€μ–΄μ„œ iTerm, IntelliJ, PyCharm 색상을 λͺ¨λ‘ μ„€μ •ν•΄ μ‚¬μš© 쀑.
0 notes
bluewiz Β· 12 years ago
Text
Mac μ—μ„œ Lock κ±Έλ¦° 파일 λͺ¨λ‘ ν•΄μ œν•˜κΈ°
Link: https://discussions.apple.com/thread/1467087
가끔 νŒŒμΌμ„ λ³΅μ‚¬ν•˜λ‹€λ³΄λ©΄, Lock 이 κ±Έλ¦° μƒνƒœλΌ 파일 이름을 λ³€κ²½ν•  수 μ—†λŠ” κ²½μš°κ°€ μžˆλ‹€. Finder μ—μ„œ 일일이 μ—΄μ–΄μ„œ Lock 을 ν•΄μ œν•˜λ‹€κ°€ μ°Ύμ•„λ³΄μ•˜λ‹€.
$ sudo chflags -R nouchg /path/to/unlock
0 notes
bluewiz Β· 12 years ago
Text
LogStash κΈ°λ³Έ μ„€μ • 파일
LogStash μ„€μΉ˜
$ brew install logstash ...
LogStash λ₯Ό ν…ŒμŠ€νŠΈν•  λ•Œ μ‚¬μš©ν•œ κ°€μž₯ 기본적인 μ„€μ • 파일. (stdin.conf 에 μ €μž₯)
input { stdin { } } output { stdout { debug => true } }
μ‹€ν–‰ ν›„ ν…μŠ€νŠΈλ₯Ό μž…λ ₯ν•˜λ©΄ JSON ν˜•νƒœλ‘œ 좜λ ₯ν•΄ 보여쀀닀.
$ logstash agent -f stdin.conf -v Pipeline started {:level=>:info} This is a test message. output received {:event=>#<LogStash::Event:0x7838c8c5 @data={"message"=>"This is a test message.", "@timestamp"=>"2013-09-29T12:22:37.636Z", "@version"=>"1", "host"=>"macbook.local"}, @cancelled=false>, :level=>:info} { "message" => "This is a test message.", "@timestamp" => "2013-09-29T12:22:37.636Z", "@version" => "1", "host" => "macbook.local" }
0 notes
bluewiz Β· 12 years ago
Text
You Need A Budget
Home: http://www.youneedabudget.com
μŠ€νŒ€(!)μ—μ„œ μ†Œν”„νŠΈμ›¨μ–΄ 할인을 ν•˜κΈΈλž˜ λ­”κ°€ ν–ˆλŠ”λ°, ν• μΈνŒλ§€λ₯Ό ν•˜λŠ” 당일 "Top Sellers" 1μœ„μ— 올라감. ν˜ΈκΈ°μ‹¬μ΄ λ°œλ™ν•΄ 검색해보고 μ“Έλ§Œν•˜λ‹€ μ‹Άμ–΄μ„œ ꡬ맀.
ν™”λ©΄λ§Œ 보면 λ‹¨μˆœν•˜ 가계뢀보닀 λ­”κ°€ 더 μžˆμ–΄λ³΄μ΄κΈ°λŠ” ν•œλ°, λ„λŒ€μ²΄ μ–΄λ–»κ²Œ μ“°λŠ”κ±΄μ§€ κΆκΈˆν–ˆλ‹€. κ·Έλž˜μ„œ κ΄€λ ¨λœ λ‚΄μš©μ„ YouTube μ—μ„œ κ²€μƒ‰ν•΄λ³΄λ‹ˆ, 생각보닀 λ§Žμ€ κ°•μ˜κ°€ μžˆμ—ˆκ³  κ°•μ˜ μ’…λ₯˜λ„ 맀우 λ‹€μ–‘ν–ˆλ‹€.
κ°•μ˜λŠ” λŒ€λΆ€λΆ„ μžμ‚°μ„ λ°”λΌλ³΄λŠ” λ°©ν–₯을 μ–΄λ–»κ²Œ λ°”κΎΈμ–΄ ν”„λ‘œκ·Έλž¨μ„ ν™œμš©ν•  것인지에 μ΄ˆμ μ„ λ§žμΆ”μ–΄μ„œ μ„€λͺ…을 μ§„ν–‰ν•œλ‹€.
κΈ°μ‘΄ κ°€κ³„λΆ€μ—μ„œ λ³Ό 수 μ—†λŠ” νŠΉμ§•
κΈ°μ‘΄ 가계뢀와 κ°€μž₯ λ‹€λ₯Έ 점은 κ³Όκ±°λ₯Ό λ°”λΌλ³΄λŠ”κ²Œ μ•„λ‹Œ 미래λ₯Ό λ°”λΌλ³Έλ‹€λŠ” 점이닀. 무슨 말이냐면, λŒ€λΆ€λΆ„ κ°€κ³„λΆ€λΌλŠ” 것이 μ–΄μ œ ν˜Ήμ€ 였늘 μ§€μΆœν•œ λ‚΄μš©μ„ 기둝해두고 κ·Έ 달 λ§ˆμ§€λ§‰ μ•„λ‹ˆλ©΄ 연말에 λˆμ„ 어디에 μ–Όλ§ˆλ‚˜ μΌλŠ” μ§€λ₯Ό ν™•μΈν•˜λŠ”λ° κ·Έ λͺ©μ μ„ κ°€μ§€κ³  μžˆλ‹€.
ν•˜μ§€λ§Œ, YNAB μ—μ„œλŠ” 미리 μ˜ˆμ‚°μ„ 작고 μ–΄λ–€ λΉ„μš©μ„ μ–Όλ§ˆλ‚˜ μΌλŠ”μ§€μ— μ΄ˆμ μ„ λ§žμΆ˜λ‹€. 즉, ν•œλ‹¬μ΄ μ‹œμž‘λ  λ•Œ κ·Έ 달에 μ‚¬μš©ν•  μ˜ˆμ‚°μ„ ν•­λͺ©λ³„λ‘œ 미리 μž‘μ•„λ‘κ³  λˆμ„ μ“Έ λ•Œλ§ˆλ‹€ ν•΄λ‹Ή ν•­λͺ©μ—μ„œ μ°¨κ°ν•˜λŠ” ν˜•νƒœλ‘œ 가계뢀 ν•­λͺ©μ„ μ±„μš΄οΏ½οΏ½οΏ½.
미리 ν• λ‹Ήν•΄λ‘” μ˜ˆμ‚°μ„ μ°¨κ°ν•˜λŠ” ν˜•νƒœλ‘œ 가계뢀λ₯Ό κΈ°λ‘ν•œλ‹€λŠ” 것이 λ‹€λ₯Έ 가계뢀와 κ°€μž₯ 큰 차이점이며, 이λ₯Ό ν†΅ν•΄μ„œ μ–΄λ–€ ν•­λͺ©μ— μ†ν•œ λΉ„μš©μ„ 많이 μ‚¬μš©ν•˜λŠ”μ§€ ν•œ λˆˆμ— 확인할 수 μžˆλ‹€.
0 notes
bluewiz Β· 12 years ago
Text
Hadoop CLASSPATH
HDFS 에 μ ‘κ·Όν•΄ 데이터λ₯Ό μ½κ±°λ‚˜ μ“°κΈ° μœ„ν•œ ν”„λ‘œκ·Έλž¨μ„ μž‘μ„± ν›„ μ‹€ν–‰ν•  경우, CLASSPATH λ₯Ό 미리 μ§€μ •ν•΄μ£Όμ–΄μ•Ό ν•œλ‹€.
$ export CLASSPATH=...
μœ„μ™€ 같이 직접 μ§€μ •ν•  수 μžˆμ§€λ§Œ(사싀은 μ–Όλ§ˆμ „κΉŒμ§€λ„ μ΄λ ‡κ²Œ μ‚¬μš©ν–ˆμŒ..)
$ hadoop classpath
λͺ…λ Ήμ–΄λ₯Ό μ΄μš©ν•˜λ©΄ 맀우 κ°„νŽΈν•˜κ²Œ μ§€μ •ν•  수 μžˆλ‹€. μ‹€μ œλ‘œ μ‚¬μš©ν•  κ²½μš°μ—λŠ” λ‹€μŒκ³Ό 같이 μž…λ ₯ν•œλ‹€.
$ java -cp `hadoop classpath':app.jar main.class.path
0 notes
bluewiz Β· 12 years ago
Text
Mavericks DP 6 μ—μ„œ IntelliJ, PyCharm λ“±μ—μ„œ 메인 메뉴가 μ‚¬λΌμ‘Œμ„λ•Œ ν•΄κ²° 방법
Link: http://youtrack.jetbrains.com/issue/IDEA-112511
Mavericks DP 6 μ„€μΉ˜ 후에 별 문제 μ—†λ˜ IntelliJ 와 PyCharm 메인메뉴가 μ‚¬λΌμ Έμ„œ κ·Έλƒ₯ λ‹¨μΆ•ν‚€λ‘œ μ“°κ³  μžˆμ—ˆλŠ”λ°, ν•΄κ²° 방법은 맀우 간단.
http://support.apple.com/kb/DL1572
μœ„μ—μ„œ Java SE 6 λ₯Ό μƒˆλ‘œ λ°›μ•„ μ„€μΉ˜ν•˜κ³  μž¬λΆ€νŒ…ν•˜λ©΄ λœλ‹€.
0 notes
bluewiz Β· 12 years ago
Text
ReadKit μ—μ„œ λ°œμƒν•˜λŠ” Feedly 동기화 였λ₯˜
동기화 문제 없이 잘 λ™μž‘ν•˜λ˜ ReadKit μ—μ„œ 글을 보고 λ‹€μŒμœΌλ‘œ λ„˜μ–΄κ°ˆ λ•Œλ§ˆλ‹€ feedly μ—μ„œ 잘λͺ»λœ 데이터λ₯Ό λ°›μ•˜λ‹€λŠ” 였λ₯˜ λ©”μ‹œμ§€λ₯Ό 좜λ ₯ν–ˆλ‹€.
κ·Έλƒ₯ feedly μ‚¬μ΄νŠΈκ°€ μž μ‹œ λ‚΄λ €κ°”λ‹€κ±°λ‚˜ νŠΈλž˜ν”½μ΄ λ„ˆλ¬΄ λ§Žμ•„ κ·ΈλŸ°κ°€ν–ˆλŠ”λ°, 계속 같은 ν˜„μƒμ΄ μΌμ–΄λ‚˜κΈΈλž˜ μ™œ κ·ΈλŸ°μ§€ μ°Ύμ•„λ΄€λ‹€.
결둠은 ReadKit μ—μ„œ λ°œμƒν•œ 버그 : http://webinhq.com/blog/quick-fix-for-feedly/
ν•΄κ²° 방법은 μ„€μ • ν™”λ©΄μ—μ„œ β€œSync on start” λ₯Ό 체크 ν•΄μ œν•˜κ³ , ReadKit 을 μž¬μ‹œμž‘ν•΄μ„œ Feedly 계정 μ‚­μ œ 후에 λ‹€μ‹œ μΆ”κ°€ν•΄μ£Όλ©΄ λœλ‹€.
1. turn OFF β€œSync on start” on the syncing tab of preferences 2. restart ReadKit 3. open preferences, select the accounts tab and remove your Feedly account from the service list 4. re-add your Feedly account
이걸둜 문제 ν•΄κ²°.
μ–Όλ§ˆμ „ μ—…λ°μ΄νŠΈ(2013. 7. 25 일자)에 μœ„ λ¬Έμ œμ μ„ μˆ˜μ •ν–ˆλ‹€κ³  ν•œλ‹€.
0 notes