본문 바로가기

전체 글

(83)
visual block, shell 주석처리 하는법 [키보드만 사용][매우 쉬움!!][그림설명] v를 누르면 visual block으로 진입되고, 단어의 끝까지 이동할려면 "e"를 누르고 복사할려면 y, 붙여넣기 할려면 p를 누른다. bash shell 키고, 여러줄 주석 달고, 해제 하려고 한다. 간지나게 키보드만 사용하려고 한다. 어떻게 하면 좋을까? 1. 일단 esc를 1번 누른다. 2. ctrl + v 를 눌러 " visual 모드로 진입한다", visual 모드로 진입시 아래와 같이 visual block이라고 뜬다. 3. 원하는 만큼 키보드 방향키로 드래그 한다. 마우스로 하면 안된다!!! 키보드 방향키 혹은 hjkl로 하자! 정상적으로 주석처리가 되면 아래와 파란 동그라미 처럼된다. 해당 영역에 "#"을 삽입할것이다. 4. 그다음 shift + i를 누른다. 원하는 단어를 입력하면, 한..
[python][leetcode 875] Koko Eating Bananas --binary search, 이분탐색 Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours. Koko can decide her bananas-per-hour eating speed of k. Each hour, she chooses some pile of bananas and eats k bananas from that pile. If the pile has less than k bananas, she eats all of them instead and will not eat any more bananas during this hour. K..
[python][leetcode 129]. Sum Root to Leaf Numbers -- dfs,recur You are given the root of a binary tree containing digits from 0 to 9 only. Each root-to-leaf path in the tree represents a number. For example, the root-to-leaf path 1 -> 2 -> 3 represents the number 123. Return the total sum of all root-to-leaf numbers. Test cases are generated so that the answer will fit in a 32-bit integer. A leaf node is a node with no children. 한줄해석. 좌측과 같은 tree가 있을때, lea..
72. Edit Distance (classic. DP problem) Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three operations permitted on a word: Insert a character Delete a character Replace a character Input: word1 = "horse", word2 = "ros" Output: 3 Explanation: horse -> rorse (replace 'h' with 'r') rorse -> rose (remove 'r') rose -> ros (remove 'e') 한줄요약 horse -> ros..
[python][leetcode 2575] Find the Divisibility Array of a String 2575. Find the Divisibility Array of a String You are given a 0-indexed string word of length n consisting of digits, and a positive integer m. The divisibility array div of word is an integer array of length n such that: div[i] = 1 if the numeric value of word[0,...,i] is divisible by m, or div[i] = 0 otherwise. Return the divisibility array of word. 한줄요약 : 나눠지면, 1, 안나눠지면 0 넣기 Input: word = "99..
[논문리뷰] There is More than Meets the Eye: Self-Supervised Multi-Object Detection and Tracking with Sound by Distilling Multimodal Knowledge 풀번역 3. Technical Approach   skipskipTechnical Approach기학습된 modality-specific 교사들이 respective modality space에서 자동차들이 위치한 BB를 예측한다. 이 예측은 single multi-teacher prediction으로 융합되고 audio student network를 학습시키기위한 pseudo라벨로 활용된다. (각 도메인에서의) 상호 보완적인 정보를 효과적으로 활용하기 위해서 MTA(multi-Teacher Alignment loss)를 제안한다. 3장의 나머지에서 우리는 먼저 교사-학습 네트워크의 아키텍처와 교사 pre-trainning 절차를 설명하고, 오디오 학생을 더 잘 초기화하기 위해 제안하는 새로운 핑계 과제(pre..
git detached HEAD 연결하기 잘 모르겠는데, commit 혼자 돌아다닐때... 참고블로그 https://devcamus.tistory.com/6 보고 순서대로 진행한다. 1. commit을 보려면, HEAD->branch (ex: master) -> commit 순으로 참조를 진행한다. 요약 이런상황이면 1. master (브랜치)가 head 위치를 보게 (head 위치로 이동) 후 git branch -f master HEAD git checkout master
[gstreamer] PTS_TIME 중복시 # QTmux error 발생시 If your system is possible to have sudden shutdown, please use mpegtsmux or matroskamux. qtmux for generating mp4/mov requires EoS(End of Stream) event to output a valid file. mpegtsmux and matroskamux are streaming-based container, and more suitable for sudden shutdown. https://forums.developer.nvidia.com/t/gstreamer-video-output-file-corrupted-when-suddenly-shutdown-device/11..