분류 전체보기 (65) 썸네일형 리스트형 [Kendo UI] Grid에 row numbers 추가하는 방법 (JQuery) Grid에 row numbers를 어떻게 추가하나 검색해보니, 공식문서에는 다음과 같이 설명이 되어있다. 주요 내용을 요약하자면, 1. record 변수를 선언해준다(var record = 0;). 2. columns 안에 template: "#= ++record #"을 추가해준다. 3. 아래를 추가해준다. dataBinding: function() { record = (this.dataSource.page() -1) * this.dataSource.pageSize();} 전체코드(출처: Kendo UI 공식문서) 그런데 내가 직접 했을 때 문제가 생겼다. var record = 0;과 같이 변수 선언을 했는데 record 변수가 한번도 안 읽혔다는 안내가 나왔다. 그리고 서버에 실행했을 때에 테이블에 .. 정규표현식 테스트 사이트 및 정규표현식 모음 정규식 테스트 사이트 https://regexr.com/ RegExr: Learn, Build, & Test RegEx RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp). regexr.com 주민등록번호 \d{2}(0[1-9]|1[0-2])(0[1-9]|[12][0-9]|3[01])-[1-4]\d{6} 상세설명(아래 더보기) 더보기 대괄호([ ])는 문자 집합을 정의한다. 대괄호([ ]) 안에 있는 문자는 모두 집합의 구성원이 되며, 집합에 속한 문자 가운데 하나가 일치한다. 집합에 속한 문자가 모두 일치할 필요는 없다. \d는 숫자 하나([0-9]와 같다)를 의미한다. (0[1-9]|1[0-2]): .. [eclipse] Dynamic Web Project 만들 때 Source folder 이름이 없는 경우 해결법 Dynamic Web Project를 만드는 과정에서 Java application 환경 설정 단계에 들어왔는데 Source folder와 Default output folder명이 텅텅 비어 있어서 당황했었다. 이럴 땐 이렇게 해결하자. Source folder명을 src로 edit해주고 Defaut output folder엔 build\classes라고 써주자. 스크린샷 출처 및 상세 내용 https://carrotweb.tistory.com/14 이클립스 다이나믹 웹 프로젝트 만들기 1 - Eclipse Dynamic Web Project Dynamic Web Project(다이나믹 웹 프로젝트)는 Java Servlet(서블릿) 기반의 웹 애플리케이션입니다.  Servlet(서블릿)은 웹 브라우.. [오류일지]The selection cannot be run on any server. 오류 발생 원인: 프로젝트에 서버가 제대로 등록되지 않아서 발생하는 오류. 해결 순서 1. 프로젝트를 선택하고 오른쪽 버튼을 누르고 Properties를 선택한다. 2. [Properties] 대화상자가 나타나면 [Server] 메뉴를 선택. 3. "Always use the following server when running this project" 목록에서 Tomcat v8.5 Server at localhost를 선택해주고 Apply and Close를 누르자. 이러면 해결! https://kimsaemjava.tistory.com/166 [톰캣오류]the selection cannot be run on any server 위와 같은 오류가 발생하는 경우 서버로 웹 관련 Application이 실.. [오류일지]eclipse Tomcat 설치시 Cannot create file, access denied 오류 해결 과정 및 해결 방법 문제점: Tomcat Server를 추가하려고 보니 Server Error Cannot create file, access denied가 뜬다. 방법1. project - clean (실패) 이클립스 상담 메뉴에 있는 Project - clean - 해당 프로젝트 선택했으나 실패했다. 나는 프로젝트를 빌드하려는 것이 아니기 때문에 아무 상관이 없는 것으로 보인다. https://dev-syhy.tistory.com/32 이클립스 오류 - The project was not built due to The project was not built due to "Cannot create file, access denied:......" 프로젝트를 빌드하려고 하니 위와 같은 에러가 난다. 일단 아래와 같은 방법으.. [안드로이드][프로젝트2] 내가 long 값을 날짜 형식으로 변환한 방법 //get data long bookDate = reviewList.get(position).getrTime(); //Date Date date = new Date(bookDate); SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd HH:mm");//형식 지정 String dt = sdf.format(date); [안드로이드][프로젝트2]Firebase orderByChild descending 하는 법 (부제: recyclerView setReverseLayout(true)) 내가 본래 원했던 것은 firebase orderByChild를 통하여 recyclerView를 내림차순으로 정렬하는 거였다. 먼저 내가 시도했을 때 소용 없었던 방법을 소개하겠다. 1. 공식문서에 있는 내용 citiesRef.orderBy("name", Direction.DESCENDING); 이 방법은 공식문서에서 나온 내용이나 실제로 위와 같이 코드를 입력하면 작동이 안 된다. Direction에서 문제가 생겨 통하지 않는다. 출처: https://firebase.google.com/docs/firestore/query-data/order-limit-data#java_2 Cloud Firestore로 데이터 정렬 및 제한 | Firebase Documentation Join Firebase at G.. [안드로이드][프로젝트2] disabled ratingbar 만들기 + ratingbar 크기 줄이기 1. disabled ratingbar 만들기 In XML Layout android:isIndicator="true" 출처: https://stackoverflow.com/questions/7745020/disable-rating-on-ratingbar Disable rating on RatingBar I'm using a RatingBar and OnRatingBarChangeListener in my Code. The user can the rating once and after this I set ratingBar.setEnabled(false) . I want to show the user advice that he can't... stackoverflow.com 2. ratingbar 크기 줄.. [안드로이드][프로젝트2]BottomNavigationView 색상 변경하는 법 1. drawable에서 menu_selector_color.xml을 만든다. 2. menu_selector_color.xml에서 색상을 지정한다. 3. BottomNavigationView 속성에 적용한다. app:itemIconTint="@drawable/menu_selector_color" app:itemTextColor="@drawable/menu_selector_color" 이렇게 하면 원하는 색상으로 변경이 가능하다! 참고: https://lcw126.tistory.com/330 안드로이드 BottomNavigationView ( icon, text 색상 변경 ) BottomNavigationView 사용을 위해 라이브러리를 추가해줍니다. Gradle dependencies { implemen.. [안드로이드][프로젝트2] ratingBar 별 색깔 바꾸기 1. res/values/style.xml에서 다음과 같이 코드를 쓴다. colorControlNormal에선 안 채워졌을 때의 색을, colorControlActivated에선 채워졌을 때의 색을 넣으면 된다. 2. layout RatingBar에 다음과 같이 theme을 적용해준다. android:theme="@style/RatingBar" 참고: https://stackoverflow.com/questions/39913495/ratingbar-color-difference-on-different-devices 이전 1 2 3 4 5 6 7 다음