필요성 하나의 큰 작업을, 여러개의 작은 작업으로 동시처리가 가능 장점 Performance: 시간 비용 측면에서 효율적임 Readability: 작은 모듈로 분리하여, 가독성 향상으로 인한 유지보수성 이점 단점 Thread 간 Context switching 이 발생하여 퍼포먼스가 떨어질 수 있음 Thread safe collections ReentrantLock Smaphore CountDownLatch Keywords Bound resource Mutual exclusion Starvation Deadlock Livelock [출처] https://kwosu87.gitbooks.io/clean-code/content/Chapter%2013%20-%20%EB%8F%99%EC%8B%9C%EC%84%B1..
CREATE EXTERNAL TABLE db.table ( id INT, name STRING, type STRING ) PARTITIONED BY (type STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' STORED AS TEXTFILE; ALTER TABLE `db`.`table` ADD PARTITION (detail_type='a'); ALTER TABLE `db`.`table` ADD PARTITION (detail_type='b'); ALTER TABLE `db`.`table` ADD PARTITION (detail_type='c'); [출처] https://118k.tistory.com/m/444?..
try { HttpURLConnection.setFollowRedirects(false); HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection(); con.setRequestMethod("HEAD"); con.setConnectTimeout(5000); //set timeout to 5 seconds return (con.getResponseCode() == HttpURLConnection.HTTP_OK); } catch (java.net.SocketTimeoutException e) { return false; } catch (java.io.IOException e) { return false; } [출처] https://st..
$ ./bin/spark-submit --class org.apache.spark.examples.SparkPi \ --master yarn \ --deploy-mode cluster \ --driver-memory 16g \ --executor-memory 32g \ --executor-cores 8 \ --num-executors 20 \ --queue $1 \ --class $2 \ --name $3 \ lib/spark-examples*.jar \ https://spark.apache.org/docs/2.2.0/running-on-yarn.html Running Spark on YARN - Spark 2.2.0 Documentation Running Spark on YARN Support for ..
문서 처음으로 이동: gg, 1G 문서 맨끝으로 이동: G 단어 첫글자로 이동: w (=e) 다음 글자로 이동: W 백워드 방향 단어 첫글자로 이동: b (=ge) 백워드 방향 단어 다음글자로 이동: B 문장의 맨 앞으로 이동: ^ (=0) 문장의 맨 끝으로 이동: $ /단어: 다음(n), 이전(N) 현재 단어 찾기: * 백워드방향 현재 단어 찾기: # 되돌리기: u 재실행: Ctrl + R 현재 줄 삭제: dd 현재 단어 삭재: dw 현재 줄 복사: yy 붙여넣기: p [출처] http://mwultong.blogspot.com/2006/11/vim-vi-go-top-bottom.html https://blog.outsider.ne.kr/540
function shuffle(arr) { var i = arr.length; var random; var temp; while (i > 0) { random = Math.floor(Math.random() * i--); temp = arr[i]; arr[i] = arr[random]; arr[random] = temp; } return arr; } [출처] https://gist.github.com/seunggabi/d018657da5b15a4b50ce1693d12446c0
몇 가지 항목의 경우엔 차이가 적지만, 많은 항목이 있으면 반드시 switch ... case를 사용해야 한다. switch에 5개 이상 항목이 포함되어 있으면, 조회 테이블이나 해시 목록을 사용하여 구현된다. 즉 모든 항목은 다음과 같은 경우에 비해 동일한 액세스 시간을 갖는다. if문으로 구현할 경우, 마지막 항목이 먼저 모든 이전 조건을 평가해야 하므로, 도달하는데 많은 시간이 소요된다. [출처] https://stackoverflow.com/questions/767821/is-else-if-faster-than-switch-case
screen -list screen -S name # 생성 screen -r name # 접속 # make: ctrl + a, c # exit 종료 # ctrl + a, d 나오기 [출처] https://dreamlog.tistory.com/470 [Linux] screen 사용법 build 중 서버와 연결이 끊어지거나 컴퓨터를 끄고 퇴근해야 한다면? 1. screen 개념 putty와 같은 ssh 도구로 서버에 접속한 일반적인 사용 예. 서버에 screen 사용하여 접속한 예 두 그림의 차이 dreamlog.tistory.com $ screen -X -S [session # you want to kill] quit stackoverflow.com/questions/1509677/kill-detached..
`@Controller` 에서 `@Value` 를 사용해도 값이 설정되지 않음을 발견; `@Service` 모듈을 하나 생성하여, 그 내부에 `@Value` 를 지정하였다. `@Controller` 에서 `@Autowired` 로 해당 모듈을 가져와서 사용하여 해결 하였다. [출처] https://cnpnote.tistory.com/entry/SPRING-Controller-%ED%81%B4%EB%9E%98%EC%8A%A4%EC%9D%98-Spring-Value-%EC%A3%BC%EC%84%9D%EC%9D%80-%EC%86%8D%EC%84%B1-%ED%8C%8C%EC%9D%BC-%EB%82%B4%EB%B6%80%EC%9D%98-%EA%B0%92%EC%9D%84-%ED%8F%89%EA%B0%80%ED%95..
height: calc(100% - 18px); https://stackoverflow.com/questions/2434602/css-setting-width-height-as-percentage-minus-pixels Setting width/height as percentage minus pixels I'm trying to create some re-usable CSS classes for more consistency and less clutter on my site, and I'm stuck on trying to standardize one thing I use frequently. I have a container ... stackoverflow.com https://www.codingfac..
- Total
- Today
- Yesterday
- 테슬라
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드
- 책그림
- 할인
- 인스타그램
- 모델 Y 레퍼럴
- 레퍼럴
- 연애학개론
- Bot
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 리퍼럴 코드 혜택
- 모델y
- 어떻게 능력을 보여줄 것인가?
- Kluge
- 클루지
- 테슬라 크레딧 사용
- 김달
- COUNT
- wlw
- 테슬라 리퍼럴 코드 생성
- 테슬라 레퍼럴 코드 확인
- 유투브
- 개리마커스
- follower
- 테슬라 추천
- 테슬라 레퍼럴 적용 확인
- 팔로워 수 세기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |