목록프로그래밍 (82)
좋은 프로그램은 마음의 여유에서 나온다.
http://coderpills.wordpress.com/2014/05/11/how-to-use-twitter-bootstrap-3-for-non-responsive-site/ viewport 제거.container에 max-width 제거navbars -> variables.less 열고 @grid-float-breakpoint, @screen-xs-max 변수 0으로 설정col-xs-*만 사용
context xml 파일에 mvc 네임스페이스 추가 주소창에 도메인/login 입력하면 login.jsp로 이동
lang 파라미터로 언어 변경 안되는 경우 아래의 코드에서 handlerMapping을 제거하고 localChangeInterceptor을 mvc:interceptor 안에 추가 수정된 내용 참고 : http://stackoverflow.com/questions/18287711/spring-mvc-3-localechangeinterceptor
include를 이용 http://stackoverflow.com/questions/4132362/import-xml-into-another-xml
http://facebook.github.io/conceal/ OpenSSL을 이용하고 속도 및 성능 최적화
node.js를 컴파일해서 설치하면 컴파일시에 필요한 도구들을 깔아야 하므로 문제 없지만 apt-get으로 깔면 아래 명령어로 npm install시에 필요한 도구 설치 $ sudo apt-get install git-core curl build-essential openssl libssl-dev 아래와 같은 에러가 날때 registry 설정Error: failed to fetch from registry :패키지명 $ npm config set registry http://registry.npmjs.org/
Robolectric 설치 방법은 다양하나 Maven 중앙저장소에서 jar 다운로드. (http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.robolectric%22) jar 다운로드는 의존 라이브러리들이 있어서 https://oss.sonatype.org/index.html#nexus-search;quick~robolectric 에서 robolectric-버전-with-dependencies.jar를 받음. 테스트를 하려는 프로젝트에 test 폴더 생성 새로운 자바 프로젝트를 생성함.JUNIT4(robolectric이 junit3 미지원), 안드로이드 프로젝트에 만들었던 test 폴더 링크 새로운 자바 프로젝트 생성, Next 버튼 src 폴더 선택후 Rem..
앱의 신뢰성과 안전성을 위해 예외처리 안되어 죽는 경우 오류 수집하기. ACRA(Application Crash Report for Android) 라이브러리 이용. https://github.com/ACRA/acra 수집 서버는 여러가지가 있지만 구글 폼은 더이상 지원하지 않고. 개인적으로 노드 + 몽고디비로 이용(https://github.com/warsclon/acra-node-server) 사용법은 매우 간단. 안드로이드에서 Application을 상속 받아 새로 클래스를 만들고. 매니페스트에 Application 지정 annotation으로 formUri만 지정해 주면 끝. 매니페스트에 Application 지정 서버쪽 설정에 이메일 수신설정 해놓으면 예외처리 안된 오류로 앱이 죽을 경우 수집해..