본문 바로가기

반응형

분류 전체보기

(73)
리눅스 외장하드 추가하기 1. USB 연결 후 장치 확인 # watch -d -n1 'ls -l /sys/bus/scsi/devices/* | grep usb'lrwxrwxrwx 1 root root 0 Jul 20 14:26 /sys/bus/scsi/devices/10:0:0:0 -> ../../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/usb1/1-12/1-12:1.0/host10/target10:0:0/10:0:0:0lrwxrwxrwx 1 root root 0 Jul 20 14:26 /sys/bus/scsi/devices/10:0:0:1 -> ../../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/usb1/1-12/1-12:1.0/host1..
구글 colab과 drive 연동하기 파일을 직접 업로드 할 수 있으나, 하나씩 하기 귀찮다. 특히 대용량의 경우 더 귀찮다.따라서 구글드라이브와 연동을 하고 싶다.다음의 단계를 따라가면 된다. 1. 아래 코드를 코랩 노트북에서 실행하기!apt-get install -y -qq software-properties-common python-software-properties module-init-tools!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null!apt-get update -qq 2>&1 > /dev/null!apt-get -y install -qq google-drive-ocamlfuse fusefrom google.colab import authauth.authen..
몽고DB 리눅스에서 설치부터 실행까지 몽고DB는 SQL언어와는 약간 다르다. 그리고 최근 블로그를 통한 설치매뉴얼들은 바뀐 점들이 많아서 다시 정리한다. 공식 홈페이지가 가장 정확하나, 나는 왜인지모르게; 공식홈페이지에서도 이상한 부분이 있었다...;공식 홈페이지 [링크] 몽고DB는 기본적으로 apt-get으로 바로 설치가 안되기 때문에 직점 apt-get list에 추가를 해줘야 한다.Ubuntu Xeniel 16.04 기준이다. 1.먼저 GPG key로 인증을 해준다.sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 2. 다음으로 리스트에 추가를 해준다.echo "deb [ arch=amd64,ar..
[Python, networkx] community detecting using the modularity 파이썬에는 community라는 package가 있는데, 이 패키지가 아닌 python-louvain이 만든 community라는 패키지를 쓸 것이다. # 설치 in terminalpip install python-louvain # 실행 in notebookfrom community import community_louvain import networkx as nx import matplotlib.pyplot as plt #better with karate_graph() as defined in networkx example. #erdos renyi don't have true community structure G = nx.erdos_renyi_graph(30, 0.05) #first compute t..

반응형