본문 바로가기

Programming/삽질기록8

PostgreSQL 데이터베이스 생성 (feat.Dbeaver) PostgreSQL을 처음 설치하고 사용하는 경우,1. PostgreSQL 서버 먼저 설치 2. 데이터베이스를 생성3. DBeaver에서 연결 순서로 진행해야 한다.  [1. PostgreSQL 설치 방법]공식 다운로드 홈페이지https://www.enterprisedb.com/downloads/postgres-postgresql-downloads EDB: Open-Source, Enterprise Postgres Database Management www.enterprisedb.com 순서대로 진행 (중간에 stack builder 체크 해제)  설치가 완료되면 Win + R 키를 눌러 cmd를 검색해서 아래 명령어를 입력한다. netstat -ano | findstr 5432 설치가 정상적으로 완료됐.. 2025. 2. 4.
이미 사용 중인 포트 / address already in use :::3000 해결법 3000번 포트를 실행하려는데 이미 사용 중인 포트라면서 실행이 안될 때,터미널에 아래와 같이 순서대로 명령어를 입력한다. 1. netstat -a -o (현재 사용중인 포트 항목들이 보인다)   2. 사용하려는 포트(3000)의 pid를 확인한다. 3. taskkill -f /pid 10600  이제 다시 3000번 포트를 실행하면 잘 될 것이다.그래도 안되면 재부팅 ㄱㄱ 2024. 11. 25.
[object Object] 출력하기 자바스크립트에서 Json 형태의 object 변수인 person이라는 변수가 있다. 💻 예제 코드  person에 어떤 값이 들어있나 보려고 console.log를 찍어보니[object Object] 이렇게 나온다.  그럴 땐, person을 JSON.stringify으로 감싸준다.console.log(JSON.stringify(person)); [출력 결과값]{"firstName":"John","lastName":"Doe","age":50,"eyeColor":"blue"} 짝짝짝 2024. 10. 23.
Apexchart 데이터 0일때 차트에 나타내기/감추기(chart show/hide) apexchart 라이브러리를 사용해서 집계데이터를 나타내려 한다. (출처 : https://codepen.io/rprol/pen/GBxqEg)  그리고 해당 차트에서 데이터 부분에 마우스를 갖다 대면,  사진에서 볼 수 있듯이 해당 그래프에 마우스를 갖다 대면, 각 데이터의 상세정보가 나오는 걸 확인할 수 있다.데이터가 0인 경우에도 hover하면 Social Media: 0 이렇게 노출된다.하지만 사용자는 데이터 값이 0일 땐 상세정보 부분에서 아예 안 보일 수 있게 처리해달라는 것이다.  우선 코드를 살펴보면var options = { chart: { height: 380, type: "line" }, series: [ { name: "Website Blog", .. 2024. 10. 17.
스프링부트 SecureRandom 예제 관리자페이지 생성 후 관리자 등록 시, 임의의 비밀번호를 생성해서 발급해주려 한다. 임의의 난수를 만드는 함수로는 Random, SecureRandom이 있는데 그중에서도 SecureRandom이 암호적으로 더 강력한 난수를 만들어주는 클래스라고 하기에 사용해 보았다. ✨ SecureRandom 관련 내용은 하단 링크 참조 https://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html SecureRandom (Java Platform SE 8 ) This class provides a cryptographically strong random number generator (RNG). A cryptographically strong ra.. 2023. 11. 20.
[Git] Another git process seems to be running in this repository : 에러해결 현상 commit 을 하려던 중 잘되던 git이 해당 에러를 내뱉었다. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. 해결 문제가 생긴 .git 폴더에가서 index.lock 파일 삭제함 커맨드로 진행하는 경우 해당 git 경로로 들어가서 rm -f ./.git/.. 2023. 8. 11.