numpy 기초 정리

numpy import 하기 import numpy as np numpy array 기본 생성 nd1 = np.array([[1,2], [3,4]]) nd1 array([[1, 2, 3], [3, 4, 1]]) numpy 주요 속성 nd1.ndim ## 차원(rank) nd1.size ##…

0 Comments

nextcloud 업데이트 시 oc_flow_operations is NotNull Error

nextcloud 17.0.10에서 18.0.10으로 업데이트하는데 아래와 같은 오류가 발생했다. InvalidArgumentException: Column name "oc_flow_operations"."entity" is NotNull, but has empty string or null as default. 데이터베이스에서 발생한 문제인데 db에서 다음과 같은 쿼리를 수행해준다.…

0 Comments

nextcloud webdav 설정 시 오류 해결, nginx 설정

윈도우에서 webdav를 연결하려는데 에러가 났다. 보통은 아이디, 패스워드를 입력하는 창이 나오는데 네트워크가 아에 연결이 안 되는 것과 같은 에러가 발생했다. nginx 설정에 문제가 있는 것으로 보여 설정 관련 내용을 찾았다.…

0 Comments

k3s(kubernetes) 설치와 gitlab 연동하기

k3s(Kubernetes) 설치 및 실행 k3s는 간단한 shell 명령으로 설치와 실행이 가능하다. $ curl -sfL https://get.k3s.io | sh - 위 명령으로 간단한 설치와 실행이 가능한데, 필자의 경우 이미 서버에서 web 서비스들을…

0 Comments

gitlab registry 저장 위치 변경

gitlab registry를 설정하고 저장되는 이미지들을 넉넉한 하드웨어 공간으로 변경하기 위해 path 설정을 해주었다. /etc/gitlab/gitlab.rb를 수정한다. gitlab_rails['registry_path'] = "/path/to/registry/storage" 위에서 본인이 원하는 path로 수정하고 reconfigure/restart를 실행한다. $ sudo gitlab-ctl reconfigure $…

0 Comments

gitlab registry domain 설정 하기 with nginx

gitlab에서 docker registry를 사용할 수 있는 걸 알게 됐다. reg.example.com과 같은 도메인 주소로 registry 접근이 가능하게 설정하는 방법을 포스팅 하겠다. nginx configuration 설정 $ sudo vi /etc/nginx/sites-available/reg.conf 먼저 reg.conf 파일을…

0 Comments

vue – v-html 사용 시 css 스타일 적용

v-html을 사용해서 문자열 변수에 포함된 태그에 css 스타일을 적용하려고 했는데 정상적으로 스타일이 적용되지 않았다. 다음과 같은 옵션을 사용해서 해결할 수 있다. 예제 var html_str = "Hello <mark>Example</mark> World" 위와 같은…

0 Comments

gitlab 버전 업그레이드 시 db migration 에러

gitlab을 최신 버전으로 업그레이드 하려는데 db migration에서 아래와 유사한 에러가 발생했다. gitlab-ctl 명령으로 restart를 할 때 postgresql-exporter가 정상적으로 실행이 안 되고 reconfigure할 때 아래 메시지들이 출력되었다. bash[migrate gitlab-rails database] action…

0 Comments