본문 바로가기

분류 전체보기

(44)
우분투 pgAdmin4 환경 세팅 이전에 PostgreSQL을 설치했다. 이것은 CLI 버전으로 이번에는 pgAdmin이라는 GUI도 있길래 환경 세팅을 포스팅해보고자 한다. # # Setup the repository # # Install the public key for the repository (if not done previously): curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg # Create the repository configuration file: sudo sh -c 'echo "deb [signed-by=/usr/share..
우분투 PostgreSQL 환경 세팅 회사가 사일로현상이 심해서 우리 부서는 사실상 부서 내부에서만 협업했다. 하지만 이번에 Devops와 협업을 하게 되면서 DB migration이 필요하다. 옆 부서는 PostgreSQL을 사용하기 때문에 개발 환경에 좀 익숙해질 필요가 있다. 하지만 PostgreSQL 공홈에 linux 설치 튜토리얼이 윈도우 환경에 비해 많이 부실해서 포스팅으로 남겨본다. $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' $ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF..
PostgreSQL Tutorial https://www.postgresqltutorial.com/
event <mouse element> https://developer.mozilla.org/en-US/docs/Web/API/Element#mouse_events Element - Web APIs | MDN Element is the most general base class from which all element objects (i.e. objects that represent elements) in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. developer.mozilla.org 각종 마우스 이벤트들
[Python] 백준 2346번 "풍선 터뜨리기" Performance 34016 kb, 60ms Algorithm classification 자료구조, 스택 Question 1번부터 N번까지 N개의 풍선이 원형으로 놓여 있고. i번 풍선의 오른쪽에는 i+1번 풍선이 있고, 왼쪽에는 i-1번 풍선이 있다. 단, 1번 풍선의 왼쪽에 N번 풍선이 있고, N번 풍선의 오른쪽에 1번 풍선이 있다. 각 풍선 안에는 종이가 하나 들어있고, 종이에는 -N보다 크거나 같고, N보다 작거나 같은 정수가 하나 적혀있다. 이 풍선들을 다음과 같은 규칙으로 터뜨린다. 우선, 제일 처음에는 1번 풍선을 터뜨린다. 다음에는 풍선 안에 있는 종이를 꺼내어 그 종이에 적혀있는 값만큼 이동하여 다음 풍선을 터뜨린다. 양수가 적혀 있을 경우에는 오른쪽으로, 음수가 적혀 있을 때는 왼쪽..
[Python] 백준 1874번 "스택 수열" Performance 34160 kb, 420ms Algorithm classification 자료구조, 스택 Question 스택 (stack)은 기본적인 자료구조 중 하나로, 컴퓨터 프로그램을 작성할 때 자주 이용되는 개념이다. 스택은 자료를 넣는 (push) 입구와 자료를 뽑는 (pop) 입구가 같아 제일 나중에 들어간 자료가 제일 먼저 나오는 (LIFO, Last in First out) 특성을 가지고 있다. 1부터 n까지의 수를 스택에 넣었다가 뽑아 늘어놓음으로써, 하나의 수열을 만들 수 있다. 이때, 스택에 push하는 순서는 반드시 오름차순을 지키도록 한다고 하자. 임의의 수열이 주어졌을 때 스택을 이용해 그 수열을 만들 수 있는지 없는지, 있다면 어떤 순서로 push와 pop 연산을 수행해..
Rethinking pose estimation in crowds: overcoming the detection information bottleneck and ambiguity https://arxiv.org/abs/2306.07879 Rethinking pose estimation in crowds: overcoming the detection information-bottleneck and ambiguity Frequent interactions between individuals are a fundamental challenge for pose estimation algorithms. Current pipelines either use an object detector together with a pose estimator (top-down approach), or localize all body parts first and then link them to arxiv.or..
[Python] 백준 1966번 "프린터 큐" Performance Algorithm classification자료구조, 큐 Question여러분도 알다시피 여러분의 프린터 기기는 여러분이 인쇄하고자 하는 문서를 인쇄 명령을 받은 ‘순서대로’, 즉 먼저 요청된 것을 먼저 인쇄한다. 여러 개의 문서가 쌓인다면 Queue 자료구조에 쌓여서 FIFO - First In First Out - 에 따라 인쇄가 되게 된다. 하지만 상근이는 새로운 프린터기 내부 소프트웨어를 개발하였는데, 이 프린터기는 다음과 같은 조건에 따라 인쇄를 하게 된다.현재 Queue의 가장 앞에 있는 문서의 ‘중요도’를 확인한다.나머지 문서들 중 현재 문서보다 중요도가 높은 문서가 하나라도 있다면, 이 문서를 인쇄하지 않고 Queue의 가장 뒤에 재배치 한다. 그렇지 않다면 바로 인..