본문 바로가기

전체 글615

[Window] Window Port Search and Kill the process 웹 개발 도중 이클립스에서 톰캣이 불안정 종료되어 생긴 포트 겹침 오류 때문에 톰캣이 시작되지 않는 현상 특정 포트 8080을 찾아 프로세스를 종료시킴으로써 오류를 해결. 먼저 명령프롬포트창인 CMD를 열어 netstat -a -o 프로토콜 / 로컬 주소 / 외부 주소 / 상태 / PID가 로컬주소에 0.0.0.0: ← 이거 다음 숫자인 port번호와 PID 8080포트 종료 taskkill /f /pid PID번호 프로세스 종료됨. 2020. 4. 5.
[Js] IE Default Error 호환성 문제로 파라미터 기본값 에러 날 시 (Explorer) function foo(a, b) { a = typeof a !== 'undefined' ? a : 'null'; b = typeof b !== 'undefined' ? b : 'null'; ... } 2020. 4. 5.
[JS] select의 선택된 값 구하기 select element를 만들고 onchange에 변경 이벤트가 발생했을 때 호출될 함수명을 추가한다. 2020. 4. 5.
[Java] JAVA CASTING 문자 → 숫자 1. String to Int 가장 많이 사용한다고 생각됩니다. 자바 Integer클래스의 parseInt함수와 valueOf 함수로 변환 시켜줄 수 있습니다. String s_num = "10"; int i_num = Integer.parseInt(s_num); //String -> Int 1번방식 int i_num2 = Integer.valueOf(s_num); //String -> Int 2번방식 2. String to Double, Float 자바 Long, Double, Float 클래스의 parseLong함수와 valueOf 함수로 변환 시켜줄 수 있습니다. //Double.valueOf(String값) //Float.valueOf(String값) String s_num = "1.. 2020. 3. 29.
[ElasticeSearch] Delete Query prevent 모든 인덱스 삭제 및 방어 모든 인덱스 삭제 curl -XDELETE 'http://localhost:9200/*' 방어설정은 elasticsearch.yml → action.destructive_requires_name: true 로 바꿔놓자. 2020. 3. 29.
[Python] 리스트 문자열 합치기 .join() list와 string - .split(), .join() 리스트와 문자열은 유사하다. my_list = [1, 9, 8, 5, 0, 6] my_str = 'hello world' 5 in my_list # True 'e' in my_str # True 서로 변환이 가능하다. list = str.split() : 문자열 => 리스트, 공백시 스페이스 기준 ” “.join( list ) : 리스트에서 문자열으로 char = list('hello') print(char) # ['h', 'e', 'l', 'l', 'o'] # string => list>>> words = "python은 프로그래밍을 배우기에 아주 좋은 언어입니다." words_list = words.split() print(words_list.. 2020. 3. 29.