BLOG main image
분류 전체보기 (111)
주절주절 (16)
Tabex (4)
클라우드 관련 (12)
Linux (23)
CruiseControl (3)
XP (1)
C (4)
C++ (1)
C# (2)
Boost (3)
Java (0)
DataBase (4)
Algorithm (17)
Network (1)
OS (1)
UML (1)
상식 (3)
좋은 글 (3)
회사에서... (0)
Node.js (1)
EKS (1)
Mac (2)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
2024. 2. 6. 09:29
[Mac]

https://www.arthurkoziel.com/setting-up-vim-for-yaml/

 

Setting up Vim for YAML editing

Setting up Vim for YAML editing March 23, 2020 In this blog post I'm going to show how to set up Vim for easier YAML editing. You can scroll down to the end for a summary of all installed plugins and config file changes. There's not much to do here. VIM ha

www.arthurkoziel.com

 

YAML 파일을 VI, VIM 으로 다루다 보니, Tab 이 들어가면서 나오는 에러,

error: error parsing deployment.yml: error converting YAML to JSON: yaml: line 10: found character that cannot start any token

 

근데 VIM 으로 보면 Tab 표시가 안나타나서 Mac에서는 위와 같이 Vim 에디터에다가 YAML 유효성을 검증할 수 있는 플러그인을 설치하면 좋다.

2022. 5. 23. 17:05

DB 마이그레이션 중 에러발생.

 

쿼리문 변경해주면된다.

vi xxxx.sql
:%s/\(X'[^,\)]*'\)/CONVERT(\1 using utf8mb4)/g

 

2019. 11. 6. 12:50

https://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/fork/daemon.cpp

 

doc/html/boost_asio/example/fork/daemon.cpp - 1.47.0

 

www.boost.org

boost asio 로 서버를 개발하고 , daemon 으로 띄우려고 코드를 입혔다

 

다시 빌드를 하고나니 잘 돌아가던 서버가 deadlock 걸린것 처럼 수행이 되질 않는다.

 

sudo gdb -p <프로세스ID> 

info thread

 

로 확인하니

 

pthread_cond_wait 에서 대기중이다.

 

결론은....

 

daemon을 만드려고 프로세스를 fork하고 부모는 exit하는 과정에서

전역변수 공유가 되질 않아서 발생한 문제였다.