본문 바로가기

programming

mac osx posteGre 홈페이지 다운 후 실행 방법 homebrew 를 이용해서 설치하지 않고 postegre 홈페이지에서 맥용을 다운 받았다. 처음에 어떻게 실행시켜야 하는 지 몰랐는데, /Library/PostgreSQL/9.6/bin 기본 설치되어 있는 위 디렉터리에서 psql(exec) 를 더클 클릭하니 터미널이 열리면서 실행되었다 ^^ 더보기
postgreSQL 환경 변수 설정 (win10) 제어판-시스템-설정변경 시스템 속성-고급-환경변수 사용자 변수-새로 만들기 변수 이름 : Path 변수 값 : postgreSql 설치되어 있는 곳 (psql.exe 파일 있는 폴더) cmd 에서 실행 $ psql -U postgres 더보기
nth-of-type, nth-child 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 div > p:nth-of-type(2) { background: red; } div > p:nth-child(2){ background: yellow; } test The first paragraph. The second paragraph. The third paragraph. The fourth paragraph. cs 더보기
구글 스프레드 시트 - 조건부 서식 - 행에 색깔 넣기 http://blog.naver.com/PostView.nhn?blogId=reyong77&logNo=220799387243 더보기
우분투에서 mysql 접속이 안 되었을 때 https://lovestudycom.tistory.com/entry/ubuntu%EC%97%90-Mysql-%EC%84%A4%EC%B9%98-%ED%9B%84-root-%EC%A0%91%EC%86%8D%EC%97%90%EB%9F%AC ubuntu에 Mysql 설치 후 root 접속에러 ubuntu에 Mysql 설치 후 Mysql 에러가 나서 로컬에서 root로 접속을 할 수가 없었다. # mysql -u root -p Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' - 해결한 방법 sudo.. lovestudycom.tistory.com sudo service mysql restart 나는 위 명령어를 치니.. 더보기
factorial 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 def factorial(n): if not isinstance(n, int) or n 더보기
node js mysql 연동 에러 Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client node js mysql 연동시 위와 같은 에러가 발생하였다.이유는 잘 모르겠지만, 검색 끝에 대충 해결하였다. 기존에 설치된 mysql 을 삭제하고 재설치.설치할 때Strong passord~~ 이거 말고legacy 로 시작하는 것을 선택하고 설치하여야 한다. 더보기
JS) call 예제 123456789101112131415161718192021//자바스크립트 함수, callconst rose = {name : "로즈-장미"};const lily = {name : "릴리-백합"};const mugunghwa = {name : "무궁화-무궁화"}; function flower(){ return `flower : ${this.name}`;} console.log(flower.call()); // flower :console.log(flower.call(lily)); // flower : 릴리-백합 function updateFlower(languge, japanese){ this.languge = languge; this.japanese = japanese;} updateFlower.cal.. 더보기