본문 바로가기

전체 글

(40)
if ssh suddenly doesn't work with error msg like (ssh: Could not resolve hostname jun: nodename nor servname provided, or not known) sudo killall -HUP mDNSResponder https://stackoverflow.com/questions/20252294/ssh-could-not-resolve-hostname-hostname-nodename-nor-servname-provided-or-n
linux gpu card name nvidia-smi --query-gpu=name --format=csv,noheader
universal control; link mac and ipad https://support.apple.com/ko-kr/HT212757 유니버설 컨트롤: Mac과 iPad 간에 단일 키보드 및 마우스 사용하기 Mac의 키보드, 마우스 또는 트랙패드를 사용하여 근처에 있는 최대 2대의 다른 Mac 또는 iPad 기기를 제어하고 이들 기기를 원활하게 오가며 작업할 수 있습니다. support.apple.com
why need "purpose" for vscode debug mode? https://stackoverflow.com/questions/51244223/visual-studio-code-how-debug-python-script-with-arguments Visual Studio Code: How debug Python script with arguments I'm using Visual Studio Code in order to debug a Python script. Following this guide, I set up the argument in the launch.json file: But when I press on Debug, it says that my argument is not reco... stackoverflow.com
vscode debug mode terminal not showing output or timed out issue When running debug mode in vscode with "console" set to "integratedTerminal" in launch.json, I had "timed out ~ " issue. Switching "console" to internalConsole resolves the issue but this usues DEBUG CONSOLE (and doesn't output tqdm progress I think?" Adding "python.terminal.activateEnvironment": false in settings.json didn't help Solution: add "terminal.integrated.inheritEnv": false to settings..
vscode debug mode current work directory Go to launch.json add "cwd" : "${fileDirname}" check with os.getcwd() current directory should be the folder that current activated file is in (not root directory of current vscode folder)
vscode open local terminal(mac) in ssh window https://stackoverflow.com/questions/63413570/vs-code-using-remote-ssh-how-to-open-local-terminal VS Code using Remote SSH - How to open "local" terminal? I am connected to a remote server via SSH and using the Remote - SSH plugin by VS Code to do so. However, when opening up a terminal, the default terminal is the terminal of the remote server. I know stackoverflow.com
how to check which files/folders are ignored in git https://scriptcrunch.com/git-show-ignored-files/ How to Check if gitignore is Working | Show Ignored Files In this blog, we will explain to you how to validate the .gitingnore file by checking and showing git ignored files using git check-ignore command. scriptcrunch.com
비번 자동입력시 터치아이디 끄기 https://support.google.com/chrome/thread/229518560/%ED%81%AC%EB%A1%AC-%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80%EC%97%90%EC%84%9C-%EC%A7%80%EB%AC%B8%EC%9D%B8%EC%8B%9D%EC%9D%B4%EB%82%98-%EB%B9%84%EB%B0%80%EB%B2%88%ED%98%B8-%EC%9E%85%EB%A0%A5%ED%95%98%EC%A7%80-%EC%95%8A%EC%95%84%EB%8F%84-%EC%95%84%EC%9D%B4%EB%94%94%EB%B9%84%EB%B0%80%EB%B2%88%ED%98%B8-%EC%9E%90%EB%8F%99%EC%99%84%EC%84%B1-%EA%B8%B0%EB%8A..
mission control tips https://macnews.tistory.com/380 잘 알려지지 않은 미션 컨트롤(Mission Control) 활용팁 4가지 OS X 기능 어플들의 숨겨진 기능이나 잘 알려져 있지 않는 기능들을 번갈아가며 하나씩 소개해 드리고 있는데, 오늘은 지난 번 소개해드린 닥(Dock)과 Command + Tab의 고급 기능에 이어 미션 컨트롤을 macnews.tistory.com
크롬 단축키 https://resetdy.com/119 [MacOS] 꿀팁! 같은 프로그램간의 창이동 with 크롬단축키 윈도우를 사용 할 때는 Alt + Tab 을 이용하여 창을 이동 할 수 있습니다. 마찬가지로 맥북도 Command + Tab 을 이용하면 프로그램 단위 로 이동이 가능 합니다. 바로 요기가 Key Point 인데, 프로그램 단 resetdy.com
conda auto actiavte enable/disable disable: conda config --set auto_activate_base False enable: conda config --set auto_activate_base True https://discussions.apple.com/thread/254786965 Anaconda3-2023.03-MacOSX-arm64 incompatib… - Apple Community That vendor is responsible for current macOS compatibility as Apple provides them with the developer tools to make that happen. Contact the Anaconda vendor, or install the Python 3.11.3 ..
__call__ vs forward class Test: def __init__(self,): def __call__(self, [parameters]) test = Test(parameters) test(arguments) class NewModule(nn.Module): def __init__(self,) def forward(self, [parameters]) newModule = NewModue(parameters) newModule(arguments) So, the difference is __call__ is for any normal classes while forward is for torch Modules.
__init__.py ... what for? https://www.youtube.com/watch?v=cONc0NcKE7s&ab_channel=EricOMeehan resources/object_one.py where object_one.py defines class One /object_two.py import resources a = resources.object_one.One() // error ---------------------------------- from resources.object_one import One a = One() // works ----------------------------------- resources/__init__.py /object_one.py where object_one.py defines class..
why can I assign value to python class object attribute while this attribute is not defined in the class https://stackoverflow.com/questions/60684064/why-does-this-work-in-python-creating-a-instance-setting-a-non-existent-attrib Why does this work in Python? Creating a instance, setting a non existent attribute in that class, then printing that attribute I was watching a Youtube tutorial about python classes. This is the code he wrote. class Tweet : pass a = Tweet() a.message = '140 chars' print (a..