Skip to main content

Posts

Showing posts from April, 2014

imagemagick node.js module error in macbook

When you use imagemagick module in macbook and get this error, then you can follow below steps. var im = require('imagemagick'); im.resize({     srcPath: "/Users/mac/tmp/test/a.jpg",     destPath: "/Users/mac/tmp/test/a1.jpg",     width: 200,     height: 200,     quality: 0.8 }, function(error, stdout, stderror) {     if (error) {        console.error(error); } }); "Command failed: convert: unable to load module `/usr/local/Cellar/imagemagick/6.8.7-7/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1277. convert: no decode delegate for this image format `/Users/mac/tmp/test/test.jpg' @ error/constitute.c/ReadImage/555. convert: no images defined `jpg:-' @ error/convert.c/ConvertImageCommand/3145. " brew update brew doctor brew uninstall imagemagick brew uninstall libtool brew install libtool ( --universal ) brew install imagemagick --build-from-source

elasticsearch with hanb-elasticsearch-beginner

1) making server You can make a clustered server which contains 3 folders, node1, node2, node3. Each of node has a configuration file like "elasticsearch.yml". node.name: "node1" transport.tcp.port: 9300 http.port: 9200 node.name: "node2" transport.tcp.port: 9301 http.port: 9201 node.name: "node2" transport.tcp.port: 9302 http.port: 9202 2) running server And you can run the each server with this command. ./elasticsearch/node1> ./start.sh ./elasticsearch/node2> ./start.sh ./elasticsearch/node3> ./start.sh cf. https://github.com/doohee323/hanb-elasticsearch-beginner

Calling elasticsearch in Play! java stack.

Calling elasticsearch in Play! java stack. ㅇ index 0. play! installation http://www.playframework.com/documentation/2.2.x/Installing just download and make PATH 1. making play! app (esproject) 2. changing the app for eclipse 3. add elasticsearch libraries to play! 4. making the route for test (put elasticsearch index) 5. coding with sample util class 6. debugging the play! 7. run elasticsearch servers 8. monitoring elasticsearch 9. check out query result with java API 1. making play! app (esproject) $> play new esproject What is the application name? [esproject] >(enter) Which template do you want to use for this new application?  1             - Create a simple Scala application  2             - Create a simple Java application > 2 OK, application esproject is created. Have fun! 2. changing the app for eclipse $> cd esproject/ $> play eclipse ~~~ [info] Successfully created Eclipse project files for project(s

실리콘밸리 구직 체험기_201404(5) - 5. 면접 준비 생활과 비용

5. 면접 준비 생활과 비용 취업을 준비하는 지난 3개월 동안 어떻게 지냈는지 또 얼마나 비용이 들었는지 공개하려합니다. 미국에 들어온 지 5일만에 아래의 것들을 시작했습니다. 1/2/2014 핸펀 개통 at&t 에서 prepaid phone 60$, sim 카드 구매 후 장착 1/2/2014 통장 개설 후 입금 boa 에서 통장 개설 후 들고온 현금을 입금 (800.997.1475 한인 콜센터) 1/3/2014 리크루터에게 보낼 회신 메일 작성 1/3/2014 한인 주민들과 저녁 식사 1/4/2014 대만 친구와 저녁 식사 1/5/2014 자동차 확보 이동성 확보 가방, 선글라스 구매 이동성 확보 : 운전할 때도 필요함 한국엔지니어와 저녁 1/6/2014 전화 인터뷰 시작 suck! 한인리크루터 조언듣기 영어 학원 무료 학원 강습 틈만 나면 영어 사람들과 노출되는 것이 중요하므로 기회를 찾아 다녔습니다. 특히 다양한 곳에서 공짜 또는 저렴한 비용으로 영어를 배울 수 있다는 것이 신기했습니다. 그 목록을 정리해봤습니다. https://docs.google.com/spreadsheet/ccc?key=0AkXtOKllIGtidGc5NEV5aGFUNGIwUG15UF9LWUhaUFE&usp=drive_web#gid=10 어느 날은 백인 아줌마가 수업하는 ESL conversation club. 딸랑 나까지 3명이 참석했으니 거진 1:1 수업이나 다름없었습니다. 문제는 어디를 가나 차를 가지고 20분은 달려야 하는 경우가 많다는 것. - 엔지니어 만남 이곳에서 몇몇 엔지니어들을 만났습니다. 구글 검색엔진을 만드는 사람과 맥주 한잔 했는데, 이 친구는 와이프가 취직되면 결혼 한다고 해서 수많은 회사를 연구하고 100번이 넘는 전화 인터뷰를 했다고 했습니다. 이런 절실함이 있냐고 내게 묻었던 것이 기억납니다. 초급 대만 개발자에게 영어로 web app.을 하루 가르쳐 봤습니다. 이 친구도