본문 바로가기

개발

[angularjs] filter된 array 사이즈 알아내기 아래와 같이 array를 filter할 경우 그 length를 가져오는 예제이다filter한 내용을 새로 변수를 선언해서 넣어주는게 포인트이다. 12345678910111213141516171819202122 Filter: Add sth to the list minus sth from the list {{item}} Filtered list has {{filtered.length}} items Colored by Color Scriptercs 데모See the Pen angularjs filter length by homin ahn (@beans9) on CodePen. // 필터된 데이터 길이 구하기 더보기
[eclipse/tip] 파일찾기 중 특정폴더 제외하기 이클립스를 사용하다보면 open resource(단축키:ctrl + alt + r)이나 파일찾기를 많이 사용하는데target 폴더에 내용이 같이 나와 가끔 실수를 하곤한다. 검색결과에서 제외시키는 방법 제외하고자 하는 폴더 우클릭 -> properties Resource에 Attribute항목에 Derived 체크 이렇게 해주면 검색결과나 open resource에서 검색되지 않는다. eclipse,target,open resource,ignore,파일찾기,제외 더보기
[SPRING] java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext STS에서 SPRING MVC PROJECT IMPORT 후 서버 실행하면 java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext 와 같은 에러메세지 출력. root-context.xml 위치 수정 더보기
[Spring] Eclipse(sts)에서 maven을 이용하여 tomcat에 배포하기 - 이클립스(sts)에서 메이븐을 이용하여 톰캣에 배포하기환경- sts 3.6- maven 3.2 - tomcat7 1. Tomcat7 권한 설정- tomcat/conf/tomcat-users.xml 2. maven 권한 설정- 사용자폴더/.m2/settings.xml TomcatServer id password 3. pom.xml plug-in 추가 org.apache.tomcat.maven tomcat7-maven-plugin 2.2 http://localhost:8080/manager/text TomcatServer /path 4. eclipse 프로젝트 우클릭 -> Run As -> 6.Maven Build -> -> Goals란에 "clean install tomcat7:redeploy" 입력 .. 더보기
[Spring] STS를 이용한 maven 웹프로젝트 기본환경 구축 - sts(spring tool suite)를 이용한 maven 웹프로젝트 기본환경 구축- sts 3.6.3.RELEASE version 1. sts다운로드 및 설치- http://spring.io/tools/sts/all 2. file -> new -> spring project-> Simple Spring Web Maven 선택-> Projcet name 입력-> Finish 3. 실행 해보면 한글이 깨져서 보임. - jsp파일에 page 지시자 추가 더보기
[BootStrap] 아이콘 색상 바꾸기 .white, .white a { color: #fff; } // how to change bootstrap glyphs color출처 : http://stackoverflow.com/questions/18070322/how-do-i-change-bootstrap-3s-glyphicons-to-white 더보기
테이블 길이에 맞게 내용 맞추기 td에 옵션을 넣어준다. 더보기
[jquery] 동적으로 변경된 html 값 가져오기. 스냅백같은 기능을 이용하거나 원래 내용으로 돌릴려고 할때, jquery를 이용하여 변경한 값에 경우 결과 변경한 값까지 적용된 html을 가져오고 싶을땐 아래와 같이 선언한 후 가져오면 변경된 값을 가져오게 된다. $('[type=text], textarea').each(function(){ this.defaultValue = this.value; }); $('[type=checkbox], [type=radio]').each(function(){ this.defaultChecked = this.checked; }); $('select option').each(function(){ this.defaultSelected = this.selected; }); 결과 더보기