본문 바로가기

인터넷/모바일99

nvidia docker 재설치 sudo apt-get autoremove -y docker-engine \ && sudo apt-get purge docker-engine -y \ && sudo rm -rf /etc/docker/ \ && sudo rm -f /etc/systemd/system/multi-user.target.wants/docker.service \ && sudo rm -rf /var/lib/docker \ && sudo systemctl daemon-reload #sudo apt-get install -y docker-engine=1.12.6-0~raspbian-jessie apt-cache madison docker-ce sudo apt-get install docker-ce=19.03.0~ce-0~ubuntu 2023. 5. 10.
mysql 암호 잊어버렸을 때 mysql 암호를 잊어버렸다. 인터넷을 뒤져보니, 아래처럼 하면 된다고 했는데... 1 2 mysql> update user set password=password('1111') where user='root'; ERROR 1054 (42S22): Unknown column 'password' in 'field list' cs 실제로 해보니 에러가.... 그래서 좀 더 찾아봤더니 다른 해결책이 있었다. 1 2 3 4 5 6 7 bash~$ sudo service mysql stop bash~$ sudo mysqld_safe --skip-grant-tables & bash~$ mysql mysql> update user set authentication_string=password('암호') where u.. 2020. 2. 8.
괜찮은 python용 progressive bar 프로그램 뺑뺑이를 돌리다보면, 얼마나 돌아가고 있는지 궁금할 때가 있다. 그럴 때 쓰는게 progressive bar. 인터넷을 뒤져서 2개를 찾았다. 하나는 jupyter notebook에서 쓸 수 있지만 예정 시간이 안 나오는거, 다른 하나는 jupyter에서는 사용할 수 없지만 예쁘고 & 예정 시간도 출력되는거... 선택은 알아서. 1. 예쁘고 & 예정 시간도 출력됨. 하지만, jupyter notebook에서 출력 안 됨. 1 2 3 4 5 6 7 8 from alive_progress import alive_bar import time max = 10000 with alive_bar(max) as bar: for i in range(max): time.sleep(.01) bar() cs 실행하면.. 2020. 2. 5.
vtable error. undefined 해결방법 g++ 4 이상일 때에는 -fvisibility=hidden -fvisibility-inlines-hidden을 on하게 되어있는데, 이 옵션들을 on하면, vtable 에서 함수들을 찾을 수 없다는 에러 메시지가 나오고, link도 당연히 안 된다. (이 옵션이 on이면 뭐가 좋긴한 것 같은데.. 잘은 모르겠음) 아래처럼 두 개의 옵션을 지우고, 모든 라이브러리를 재컴파일하면 문제 해결. ~/ACE/ACE_wrappers/include/makeinclude]vi platform_g++_common.GNU 1 2 3 4 5 6 7 8 9 10 11 12 13 # Take advantage of G++ (>= 4.x) visibility attributes to generate # improved shar.. 2019. 8. 7.