전체 글 47

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..

Tips/Python 2023.08.12

ssh x1 forwarding from macOS to linux PC

1. TCP nolisten 해결 (https://coolengineer.com/entry/X-Window-Portforwarding) X Window Portforwarding on MacOSx to Linux 리눅스는 주로 까만 화면의 터미널로 사용하지만, 가끔은 X Window 응용프로그램을 사용해야할 때가 있다. (xcalc 랄지...) 난 리눅스를 데스크탑으로 사용하지 않으므로, X System 전체를 설치하지 않 coolengineer.com defaults write org.macosforge.xquartz.X11 nolisten_tcp 0 2. ssh 하는 대상, 즉 linux PC 에서 sudo vim /etc/ssh/sshd_config xfoward yes 로 하기. 3. ssh 하는..

카테고리 없음 2023.07.21