2013년 4월 8일 월요일

jute 관련 요약

  • jute란 thrift, protocol buffer 란 비슷한걸로 생각하면 됨
  • 실행방법은 ant compile_jute하면 기본적인 자바는 생성됨
  • 그 외에 다른 부분들은 build파일 수정해서 하면 됨

최근에 소스 업데이트를 받고 보니 안되서 찾아보니 jute에 추가된 부분이 생성이 안되서 발생하는 문제.

build파일만 보면 된다. ㅡㅡa
  • src/generated 부분은 자바 클라이언트용으로 생성되는 자동 생성 되는 부분이다.
  • jute라고 해서  zookeeper 에서 클라이언트/서버 프로토콜로 사용하는 부분

2013년 3월 27일 수요일

emacs 콘솔과 그래픽모드 따른 폰트 적용


;; 프레임에 따라서 폰트 적용이 필요해서 이렇게 했음.
(defun my-frame-config (frame)
  "Custom behaviours for new frames."
  (with-selected-frame frame
    (when (display-graphic-p)
      (let ((fontset "fontset-default"))
        (set-fontset-font fontset 'hangul
                          '("NanumGothicOTF" . "unicode-bmp"))
        (set-face-attribute 'default nil
                            :font fontset
                            :height 160)))))

;; run now
(my-frame-config (selected-frame))
;; and later
(add-hook 'after-make-frame-functions 'my-frame-config)

2013년 2월 15일 금요일

errai 개발하기

프로젝트 생성 시작
  • mvn archetype:generate -DarchetypeGroupId=org.jboss.errai.archetypes -DarchetypeArtifactId=cdi-quickstart -DarchetypeVersion=2.2.0.Final
  • pom.xml
    • gwt 버젼 변경 2.5.0
    • gwt provide 제거 
  • mvn clean gwt:run
  • 크롬에서 보기
    • GWT Dev Plugins 설치
    • 크롬 GWT 사용시 DevMode Options에 127.0.0.1 주소 추가

Errai + IDEA + JBoss 7 기반
기본 샘플 뛰우기 위해서 5시간 넘게 메달린 
결론 
IDEA 12의 jboss deploy 쓰면 안된다 ㅡㅡ

IDEA + Errai할때는

profile : jboss7
gwt:compile 
war:exploaded 
war:war

jboss7 run & deploy시는 war 파일 직접 deploy => 이거 idea에서 파일 선택으로 해결 가능.

gwt:run

크롬 열고
http://127.0.0.1:8080/WAR명칭/App.html?gwt.codesvr=127.0.0.1%3A9997 
으로 접속해서 gwt 확인 

정말로 힘드네요 ㅡㅡa

intellij는 확실히 이클립스랑 다르네요 ㅡㅡa


jboss7 idea12 deploy

https://docs.jboss.org/author/display/AS71/Developing+JSF+Project+Using+JBoss+AS7,+Maven+and+IntelliJ


2013년 2월 8일 금요일

2013년 2월 7일 목요일

erlang 관련 글

erlang을 사용하는 업체들 목록
http://stackoverflow.com/questions/1636455/where-is-erlang-used-and-why


http://blog.whatsapp.com/index.php/2012/01/1-million-is-so-2011/

http://blog.derekperez.com/post/41382405844/teach-protocols-not-languages

2013년 2월 6일 수요일