본문 바로가기

전체 글

(424)
Java enum class 자바 이넘 클래스 (Singleton design pattern 처럼 사용방법) 앞에서 자바 싱글턴 디자인패턴을 썼는데.. ( 여 기 ) 이어서 자바 enum 자료형 클래스에 대한 내용을 쓴다.. enum 자료형을 잘 써서 이런저런 경우에 대입하는 경우가 많은데, 일단은 이펙티브 자바에서 나온 싱글턴을 대체하는 enum 클래스 예제만 보자? I posted Java singleton pattern ( here ) Continue to post this enum class in Java.. There are many usage to use enum datatype in Java, for the first, Imma write enum class for singleton in effective java book. Let's get started? 특이사항으로는.. 클래스 입구에 TEST..
티스토리 (구글/네이버 검색 노출) 사이트맵 생성 - How to make sitemap xml file 티스토리 (구글/네이버 노출) 사이트맵 생성 - How to make sitemap xml file Online XML Sitemap Generator접속한다. http://www.web-site-map.com/ 오른쪽 상단에 url 입력하는 부분에 본인 블로그 주소를 입력하고 -> Get free XML Sitemap 버튼을 누른다. -> 내용 입력 ->-> 1. url 은 입력되어서 들어온다. ->-> 2. 보안코드를 보고 똑같이 입력한다. ->-> 3. 다른 곳은 건드리지 않아도 되고, 맨 아래에 체크박스에 체크를 해준다. (아래) Include sub-domains (all subdomains must be added in Google Webmaster Tools as well) ->-> 4. C..
Design pattern - Singleton (디자인패턴 - 싱글턴) Design pattern - Singleton (디자인패턴 - 싱글턴) It's used alot because it's easy to use. Example would be written in Java or C++, maybe in Java. And it's simple if you understand the whole context. If you wonder the classdiagram, then just search. Important things.. 1. It's the only instance using specific class, in heap memory 2. This class has a self instance as a attribute(static) 3. Private constru..
Java parse double dataType after dot, 자바 소수점 이하 출력개수 조절 자바 소수점 이하 출력개수 조절 Java parse double dataType after dot 자바의 기본 자료형 doubleDouble class 의 parseDouble 메소드와 String class 의 format 메소드를 사용한다. primitive data type "double" in java.Use Double class to use parseDouble method, and String class to use format method. - 문자로 나오는 소수점을 원하는 만큼 잘라내고 파싱해서 double 값을 얻어낸다. - Get double value after parsing from string format double which you wanna get e.g. public st..
Windows 10에서 부팅시 계정 암호를 입력하지 않는 방법(How to Skip the Windows 10 Login Screen and Login) Windows 10에서 부팅시 계정 암호를 입력하지 않는 방법(How to Skip the Windows 10 Login Screen and Login) 1. Windows 키 + R을 눌러서 실행 창에 netplwiz를 입력합니다.2. 사용중인 계정의 이름을 확인한 후 [사용자 이름과 암호를 입력해야 이 컴퓨터를 사용할 수 있음]을 체크 해제합니다. 1. Windows Key + R, and execute "netplwiz"2. uncheck the box labeled “Users must enter a user name and password to use this computer.” Something else... 2018/10/10 - [Computer general/Windows] - GPU G..
GPU Graphic card performance benchmark 그래픽카드 퍼포먼스 벤치마크 (NVidia etc..) GPU Graphic card performance benchmark 그래픽카드 퍼포먼스 벤치마크 (NVidia etc..) 무려 400만원짜리 (299 US dallar) NVidia titan V 를 회사에서 사서..장착 후 드라이버 설치를 하고.. 구매완료를 하기 전에 성능 테스트를 잠깐 해보았다. 3DMark -> benchmark sitehttps://benchmarks.ul.com/3dmark?redirected=true# 위의 사이트에 접속해서 Window edition 에서 다운을 받아서 설치한다. 유료로 쓰면 더 여러가지 기능을 쓸 수 있는데, Basic edition 으로 다운받아서 설치한다.(이후에 업그레이드 가능하나, 무료버전 2가지만 테스트 할 것임) 설치 후 3DMark 를 실행..
티스토리에서 구글/네이버 검색시 노출되도록 연동하는 방법 티스토리에서 구글/네이버 검색시 노출되도록 연동하는 방법 일단 개요는.. 1.구글웹마스터 (구글아이디로 가능) 가입https://www.google.com/webmasters/ 위의 웹마스터로 바로 들어가면 최근에 New version으로 연결이 되는것 같은데그럴때는 Old version 으로 눌러서 들어가면 수월하게 가능하다. 네이버웹마스터 (네이버아이디로 가능) 가입http://webmastertool.naver.com/ 2. 구글의 Search console - home 에서 속성추가(Add attribute)를 눌러서 사이트를 추가한다. 네이버의 연동사이트 목록에서 사이트 추가를 해서 본인 블로그 사이트 url을 추가한다. -> e.g. 사이트 주소 - https://itdar.tistory.co..
Aracade Intro #12 SortByHeight CodeFights, CodeSignal arcade #12 SortByHeight Rearrange the people by their heights in a non-descending order without moving the trees. ( -1 would be tree ) 입력받은 사람들의 키와 나무(-1) 값 배열에서, 나무값의 위치는 건드리지 않고 사람들의 키를 오름차순 정렬하라 e.g. a = [-1, 150, 190, 170, -1, -1, 160, 180] sortByHeight(a) = [-1, 150, 160, 170, -1, -1, 180, 190] 함수를 통과하고 정렬된 값 //Process//1. Input height vector//2. Iterate from 1 to the..