ddns 서버 자체 구축하기
사건의 시작
일반적으로 가정집에서 Public IP까지는 받을 수 있지만 이 친구는 Static하지는 않습니다. (물론..거의 IP가 바뀌진 않지만 아주 가끔 바뀌는 경우가 있습니다) 이를 해결하기 위해서 DDNS를 많이들 셋팅하시는데, 보통 no-ip를 가입해서 공유기에 셋팅하거나 iptime 공유기에서 제공하는 iptime 도메인을 쓰는 방법을 사용합니다. 또 no-ip는 30일마다 이메일로 기간 연장을 해야합니다.
저는 이 두가지 모두 마음에 들지 않아서 제 공유기 밑에 있는 개인 서버에서 DDNS를 구축하는 방법을 찾아봤는데, 클라우드 플레어에서 제공하는 문서에서 언급된 ddclient를 살펴봤고 괜찮아...
coc.clangd가 vim에서 기본적인 부분에서 에러를 내뱉는 경우
사건의 시작
vim에서 c, c++ 를 사용하기 위해서 coc.clangd를 셋팅했었습니다. 그런데 이 coc.langd가 #include <cstring>같은 기본적인 부분에서 에러를 내뱉길래 트러블슈팅을 시작했습니다.
진행과정
처음에는 coc.clangd가 원래 c는 제대로 인식하는데 c++의 구문들을 이해하지 못한다고 생각해서 관련된 것들을 찾아봤습니다.
그런데 coc.clangd가 c만 지원하는게 아니라 c++도 기본적으로 지원한다는 내용을 발견했습니다.
이후 coc.clangd를 위한 패키지가 안 깔려있는 지, coc.clangd 재설치 등등 여러 과정을 거치다가 clangd가...
ssh-agent forwarding 팁들
트러블슈팅
깃헙에 푸시를 하는 등의 작업을 할 때 ssh key인증을 해야 합니다. 하지만 서버에서 주로 작업하는 경우 이러한 인증에 어려움이 있을 수 있고 어쩔 수 없이 서버에 key를 두고 작업하는 경우도 있습니다. 하지만 key는 공용 서버라면 서버에 두지 않는 편이 좋고 ssh-agent forwarding이라는 것을 사용하면 로컬에 있는 ssh key를 서버에서도 사용할 수 있습니다. 깃헙에서 이를 설명한 자세한 글이 이 링크에 있습니다. 이 글에서도 트러블 슈팅 방법에 대해서 설명하고 있지만 간략하게 정리해보려고 합니다.
과정
기본적으로 로컬과 서버 모두 ssh-agent가 켜져 있는 지 확인...
Paper Review: Do Adversarially Robust ImageNet Models Transfer Better?
Paper Link: https://arxiv.org/abs/2007.08489
Contribution
Authors identified that adversarial robustness affects transfer learning performance.
Despite being less accurate on ImageNet, adversarially robust neural networks match or improve on the transfer performance of their standard counterparts.
They establish this trend in both “fixed-f...
Awesome Python
1. “and” and “or” returns the object
>>> [] and {}
[] # what???
Python’s “and” operation and “or” operation doesn’t returns “True” or “False”.
A or B # is equal to
A if A is True else B
# and also
A and B # is equal to
A if A is False else B
Note that neither and nor or restrict the value and type they return to False and True,...
Entropy, Cross-Entropy, KL-Divergence
Entropy (at Information theory)
The expectation of bits that used for notating (or classify each other) probabilistic events when using optimal bits coding scheme. (\(log_2(\frac{1}{p})\) bits for notating events)
Entropy also can be interpreted as the average rate at which information is produced (\(\text{I}(X) = log_2(\frac{1}{p})\)) by ...
What is Logit and Logistic?
In Math
If $p$ is probability..
odds is $\frac{p}{1-p}$.
The logit (logistic unit) function or the log-odds is $logit(p) = \log \frac{p}{1-p}$ in statistics.
Logit function makes a map of probability values from $(0, 1)$ to $(-\infty, +\infty)$.
The logistic function or the sigmoid function is the inverse-logit. ($log...
CVPR 2020 Tutorial: Interpretable Machine Learning for Computer Vision
website: https://interpretablevision.github.io/
Lecture 1 by Bolei Zhou: Exploring and Exploiting Interpretable Semantics in GANs. video, slide, bili
Lecture 2 by Zeynep Akata: Modeling Conceptual Understanding in Image Reference Games video, slide, bili
Lecture 3 by Ruth C. Fong: Understanding Deep Neural Networks video, slide, bili
Lecture...
26 post articles, 4 pages.