반응형

분류 전체보기 310

Modbus protocol

수업을 보는 방법 https://youtube.com/playlist?list=PLz--ENLG_8TPJsTDyihX9_fdpLPFdd1xl 🚌 모드버스 프로토콜 www.youtube.com RS485 TCP RTU Over TCP 수업 목록 RS485의 이해(1/2) RS485의 이해(2/2) 마스터 슬레이브 존재의 이유, 드라이버란 시리얼통신 프로그램 만들기 모드버스 검증 툴 사용 이유 및 사용 방법 모드버스 검증 툴을 통한 개념이해(1/2) 모드버스 검증 툴을 통한 개념이해(2/2) 모드버스 패킷 분석 CRC란? CRC 구하는 프로그램 구현 모드버스 TCP 모드버스 RTU Over TCP

[Nvidia] GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC

Env. Docker pytorch/pytorch:1.10.0-cuda11.3-cudnn8-devel ※ 참고 실제 나의 상황에서는 docker root 권한으로 실행되어 sudo를 제외하고 명령을 실행함. 문제 상황 $ sudo apt-get update 위 명령어를 실행하였을 때, 아래와 같은 오류가 발생하였다. W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC E: The..

Development/Docker 2022.05.23

[Docker] docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. ERRO[0000] error waiting for container: context canceled 문제 상황 Docker를 실행함에 있어 아래와 같은 오류가 발생하였다. docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. ERRO[0000] error waiting for container: context canceled nvidia-smi를 실행시켜 보았지만, gpus는 정상적으로 잡혀 구글링을 통하여 해..

Development/Docker 2022.05.23

[이코테 2021] 5장 그래프 탐색 알고리즘 [실전문제] 미로 탈출

나의 풀이 n, m = map(int, input().split()) world = [] for _ in range(n): world.append(list(map(int,input()))) from collections import deque dr = [0, -1, 0, 1] dc = [1, 0, -1, 0] def bfs(r, c): q = deque() q.append([r,c]) while q: r, c = q.popleft() for i in range(4): nr = r + dr[i] nc = c + dc[i] if 0 = m: continue # 벽인 경우 무시 if graph[nx][ny] == 0: continue # 해당 노드를 처음 방문하는 경우에만 최단 거리 기록 if graph[nx..

[이코테 2021] 5장 그래프 탐색 알고리즘 [실전문제] 음료수 얼려 먹기

나의 풀이 n, m = map(int, input().split()) world = [] for _ in range(n): world.append(list(map(int, input()))) def dfs(r, c): if r =n or c = m: return False else: if world[r][c] == 0: world[r][c] = 1 dfs(r-1, c) dfs(r+1, c) dfs(r, c-1) dfs(r, c+1) return True else: return False cnt = 0 for r in range(n): for c in range(m): if dfs(r, c): cnt += 1 print(cnt) 답안 예시 # N, M을 공백을 기준으로 ..

반응형