Other

    [Git] git branch 명령어 쳤을때 별도의 viewer가 뜨는문제 해결

    git config --global pager.branch false https://stackoverflow.com/questions/48341920/git-branch-command-behaves-like-less/48342309

    소수 구하기(PrimeNumber)

    /** * 소수 구하기 */ public class PrimeNumber { public static void main(String[] args) { PrimeNumber.find(50000); } public static void find(int num) { if(num < 2) { return; } boolean[] isCompositeNumber = new boolean[num + 1]; // 합성수 배열. for (int i = 2; i

    조동사

    May, Might 공손한 요구(~할 수 있을까요?) 허락(~해도 좋다) 확신(~일지도 모른다) May : 50% Might : 20% Should, Ought to 충고(~해야만 한다) 확신(~임에 틀림없다) Should : 80% (친구사이) Ought to : 90% (상하관계) had better 충고(~하는편이 좋다, ~하는것이 낫다) 인간관계에 중점. Have to, Have got to 강한 의무(반드시 ~해야만 한다) don&#39;t have to : ~할 필요가 없다. 과거 : had to 충고의 문장 친구 입장 내 입장 사용 should 별 반응X 별 반응X 구분없음 (친구사이) had better 후회함 아쉬움 위->아래 (상하관계) have to 손해봄 섭섭함, 속상함 구분없음 (..

    aws lambda invoke 에러

    $ aws lambda invoke --function-name greetingsOnDemand --payload '{"name":"John"}' --cli-binary-format raw-in-base64-out out An error occurred (InvalidRequestContentException) when calling the Invoke operation: Could not parse request body into json: Unexpected character ((CTRL-CHAR, code 157)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: (byte[])..

    Java 모든 경우의수(순열 응용)

    뱀귤님 블로그 예제가 이해하기쉽게 잘 작성되어있어서 스터디 후 원하던 방향으로 응용. 순열 : https://bcp0109.tistory.com/14 조합(중복이 싫은경우) : https://bcp0109.tistory.com/15 배열 : 1, 2, 3, 4 기대값 : [1] [2] [3] [4] [1, 2] [1, 3] [1, 4] [2, 1] [2, 3] [2, 4] [3, 1] [3, 2] [3, 4] [4, 1] [4, 2] [4, 3] [1, 2, 3] [1, 2, 4] [1, 3, 2] [1, 3, 4] [1, 4, 2] [1, 4, 3] [2, 1, 3] [2, 1, 4] [2, 3, 1] [2, 3, 4] [2, 4, 1] [2, 4, 3] [3, 1, 2] [3, 1, 4] [3, 2,..

    [MAC] h2 database 연결 오류(90149)

    h2를 다운받은 후, 다운로드폴더에서 바로 ./h2.sh 를 통하여 db를 시작했다. 웹브라우저를 통해 H2콘솔에 접근해서 테이블을 하나 만든 후, JDBC로 접속하려는데 접속이안된다.(jdbc:h2:tcp://localhost/~/test) 왜 안될까 왜안될까 보다가 h2콘솔에서도 jdbc:h2:tcp://localhost/~/test로는 접속이 안되는것을 확인했다. default경로는 jdbc:h2:file:./test인것 같은데......하면서 계속보니까 h2.sh파일 경로에 test.mv.db가 생기네...? 그래서 내 계정패스(/Users/seol)에 가서(cd ~) h2.sh와 jar를 옴기고, h2.sh를 실행 하니까 /Users/seol/test.mv.db가 생겼고 JDBC접근이 된다.. ..

    테이블셀을 스와이프(swipe)해도 수정모드가 되지 않을때

    allowsSelectionDuringEditing을 true로 해도 스와이프가 안먹을때!!!! self.tableView.allowsSelectionDuringEditing = true editingStyleForRowAt을 구현했음에도!!!! 스와이프가 안먹을때!!!!!!!! override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle { return .delete }​ commit을 구현하니까 되네....중간에 확인해보려다가 안되서... 전부 구현하고 확인하면 이런일은 없을것이다 override func tableView(_ tableVi..

    집단자료형(배열/집합/튜플/딕셔너리) - 작성필요

    배열(Array) 집합(Set) 튜플(Tuple) typealias userInfo = (String, Int) let user: userInfo = ("홍길동", 30) print("이름 : \(user.0), 나이 : \(user.1)") // 결과 - 이름 : 홍길동, 나이 : 30 typealias companyInfo = (name: String, addr: String) let company: companyInfo = ("섐슝", "서울시 구로구") print("회사명 : \(company.name), 회사위치 : \(company.addr)") // 결과 - 회사명 : 섐슝, 회사위치 : 서울시 구로구 딕셔너리(Dictionary)