프로그램 사용/minicom2023. 10. 24. 14:58

minicom으로 통신을 하는데(시리얼)

창을 넓혀도 top 등을 실행할때 창의 폭이 넓어지지 않을때

아래의 명령을 넣어주면 폭이 조절된다.

$ stty columns 150

[링크 : https://acet.pe.kr/17]

 

posix 표준은 아니지만 columns N 하면 된다.

# stty --help
Usage: stty [-F DEVICE | --file=DEVICE] [SETTING]...
  or:  stty [-F DEVICE | --file=DEVICE] [-a|--all]
  or:  stty [-F DEVICE | --file=DEVICE] [-g|--save]
Print or change terminal characteristics.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all          print all current settings in human-readable form
  -g, --save         print all current settings in a stty-readable form
  -F, --file=DEVICE  open and use the specified DEVICE instead of stdin
      --help     이 도움말을 표시하고 끝냅니다
      --version  버전 정보를 출력하고 끝냅니다

Optional - before SETTING indicates negation.  An * marks non-POSIX
settings.  The underlying system defines which settings are available.

Special characters:
 * discard CHAR  CHAR will toggle discarding of output
   eof CHAR      CHAR will send an end of file (terminate the input)
   eol CHAR      CHAR will end the line
 * eol2 CHAR     alternate CHAR for ending the line
   erase CHAR    CHAR will erase the last character typed
   intr CHAR     CHAR will send an interrupt signal
   kill CHAR     CHAR will erase the current line
 * lnext CHAR    CHAR will enter the next character quoted
   quit CHAR     CHAR will send a quit signal
 * rprnt CHAR    CHAR will redraw the current line
   start CHAR    CHAR will restart the output after stopping it
   stop CHAR     CHAR will stop the output
   susp CHAR     CHAR will send a terminal stop signal
 * swtch CHAR    CHAR will switch to a different shell layer
 * werase CHAR   CHAR will erase the last word typed

Special settings:
   N             set the input and output speeds to N bauds
 * cols N        tell the kernel that the terminal has N columns
 * columns N     same as cols N
 * [-]drain      wait for transmission before applying settings (on by default)
   ispeed N      set the input speed to N
 * line N        use line discipline N
   min N         with -icanon, set N characters minimum for a completed read
   ospeed N      set the output speed to N
 * rows N        tell the kernel that the terminal has N rows
 * size          print the number of rows and columns according to the kernel
   speed         print the terminal speed
   time N        with -icanon, set read timeout of N tenths of a second

'프로그램 사용 > minicom' 카테고리의 다른 글

minicom color  (0) 2024.11.06
minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
Posted by 구차니
embeded/전자회로2023. 10. 24. 10:36

간만에 질렀나.. 엘레파츠 주소가 예전 주소.. 최소 3년 정도는 지른적이 없다는 소리구먼..

전자회로 공부하려고 PNP / NPN 트랜지스터와 혹시나 몰라서(?) RLC 중 L(인덕터) 부품을 적당히 골라서 지름고

 

(배송비 아까워서) 보다보니 usb 인두가 있길래 후다닥 구매 빠르게 데워지고 빠르게 식는다는데

부피도 부피고 220V 전원으로도 너무 오래걸리고 선이 두꺼워서 불편해 이래저래 교체를 노렸는데

그렇다고 hakko 껄 지르기에는 너무 비싸서 좌절하다 이거라도 써보자 싶어서 질렀는데 어떠려나?

'embeded > 전자회로' 카테고리의 다른 글

멀티미터 TR 테스트  (0) 2023.11.02
지름도착 - usb 인두기  (0) 2023.10.27
트리 회로  (0) 2023.10.21
다이오드, 트랜지스터  (0) 2023.10.18
tr을 구매해볼까나..  (0) 2023.10.18
Posted by 구차니

언넝 낫고 싶다. -_ㅠ

 

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

어깨 떄문에 뒷목이 아프다 ㅠㅠ  (0) 2023.10.28
통깁스  (0) 2023.10.26
병상일기 - 실밥도 아직  (0) 2023.10.20
투병일기 - 목욕  (2) 2023.10.16
투병일기 - 닭닭닭  (0) 2023.10.15
Posted by 구차니
Linux API/linux2023. 10. 23. 12:21

top 에서 출력되는 메모리 사용량이 어디서 나오나 찾아보는 중인데

일단 proc fs에서 statm 이라는 것을 발견

 

proc/77145$ cat statm
3178 1312 896 223 0 467 0

 

다만 page 단위라서, top 처럼 byte 단위로 보는건 어디인지 아직 못 찾음.

Table 1-3: Contents of the statm files (as of 2.6.8-rc3)
..............................................................................
 Field    Content
 size     total program size (pages)        (same as VmSize in status)
 resident size of memory portions (pages)   (same as VmRSS in status)
 shared   number of pages that are shared   (i.e. backed by a file, same
                                             as RssFile+RssShmem in status)
 trs      number of pages that are 'code'   (not including libs; broken,
                                             includes data segment)
 lrs      number of pages of library        (always 0 on 2.6)
 drs      number of pages of data/stack     (including libs; broken,
                                             includes library text)
 dt       number of dirty pages             (always 0 on 2.6)

[링크 : https://stackoverflow.com/questions/60644373/how-do-i-decode-the-output-of-proc-statm]

'Linux API > linux' 카테고리의 다른 글

mmap와 malloc  (0) 2023.11.13
/proc/uptime  (0) 2023.10.24
malloc() 으로 할당된 메모리 리스트?  (0) 2023.10.19
inotify  (0) 2023.06.21
system v shmget size  (0) 2023.01.09
Posted by 구차니
게임/daemon X machina2023. 10. 22. 22:50

20번도 넘게 시도해도 안되서 포기할뻔 하다가

공략을 찾았는데 하나도 도움이 안되는 상황 -_-

[링크 : https://www.youtube.com/watch?v=Hxg_8areynA]

 

오기가 생겨서 조금의 업그레이드와, 무기를 바꾸고 간단하게 해결 !

다른건 폭발이나 일반 공격이라 스태미나 깍지를 못하는데

Rampage Hammer 는 특이하게 burn 속성이 있어 공격 히트 되면

이동불가 상태에 빠져(스태미나 오링) 열심히 두드려 맞아준다.

 

대 아스널 전에서는 필수로 구비를 해야하나..

아니면 아크로 지지는게 나으려나 고민중.

'게임 > daemon X machina' 카테고리의 다른 글

daemon x machina  (0) 2023.11.02
daemon x machina  (0) 2023.11.01
daemon x machina  (0) 2023.10.31
daemon x machina  (0) 2023.10.31
DAMON X MACHINA  (0) 2023.10.21
Posted by 구차니
게임/daemon X machina2023. 10. 21. 22:35

예전에 EPIC에서 받은거 이제야 해봄

12기가라서 작은건 아닌데

요즘 게임에 비교하면 적은 용량

 

한글 패치는 아래서 받을수 있는데 원래는 dc갤 쪽이 원조인듯

근데 정작 적용하니 에러가 난다. 원래 파일도 580메가 정도 되던게 1메가 밖에 안되니

정말 제대로 된 패치가 맞나 의심되네

[링크 : https://fpsrpgames.tistory.com/3748]

'게임 > daemon X machina' 카테고리의 다른 글

daemon x machina  (0) 2023.11.02
daemon x machina  (0) 2023.11.01
daemon x machina  (0) 2023.10.31
daemon x machina  (0) 2023.10.31
damon x machina c 랭크 물자 수송 화물 열차 호위 작전 미션..  (0) 2023.10.22
Posted by 구차니
embeded/전자회로2023. 10. 21. 16:31

bc547 라는 걸 쓰는데 찾아보니 NPN TR이다.

[링크 : https://www.devicemart.co.kr/goods/view?no=1624]

 

트리에서 처럼 깜박이는걸 하려면 단순하게 R/C 만으로는 안되고, 무조건 TR을 넣어야 하나?

[링크 : https://youtu.be/8-BwTmkiMdA?si=3h8UvqFAlevSNMSU]

'embeded > 전자회로' 카테고리의 다른 글

지름도착 - usb 인두기  (0) 2023.10.27
소소한 지름  (0) 2023.10.24
다이오드, 트랜지스터  (0) 2023.10.18
tr을 구매해볼까나..  (0) 2023.10.18
오실로스코프 파형 - 캐패시터  (0) 2023.10.17
Posted by 구차니
프로그램 사용/Blender2023. 10. 20. 20:16

2.8에서는 삭제되어 2.79 까지만 남아있는 듯. 현재 3.x대로 이행되었으니 흔적도 없이 사라졌을 것 같다.

Following its removal from the official version of Blender, an unofficial fork of the game engine source code was created, named UPBGE.[4] This was done with the aim of maintaining and modernizing the engine. Since then, UPBGE has been updated with support for Blender's new realtime renderer, Eevee, and runs on top of Blender 3.0 source code.[5]

[링크 : https://en.wikipedia.org/wiki/Blender_Game_Engine]

[링크 : https://upbge.org/#/]

 

망할(!) GPL 때문에 없어질 수 밖에 없었을 듯.

그래서 unity가 신명나게 욕 먹고 대안으로 떠오르는게 BGE가 아니라 godot 게임엔진이 뜨는 듯

내장된 'Game engine save as runtime' 애드온을 사용하면 Windows용으로 빌드할 수 있다.

애드온으로 실행 파일을 만든 때에 GPL 라이선스에 따라 소스 코드를 무조건 까야 한다. BGE 라이센스 참고(영문). 요약하자면, 소프트웨어 및 소스 코드는 GNU GPL에 결합되어 있지만, 블렌더 파일(모델, 텍스처, 소리)은 그렇지 않다.

게임을 구성하는 파이썬 스크립트의 경우 개발자의 지적 재산은 맞지만 내부 에드온으로 빌드하면 GPL 소스 코드와 섞이기 때문에 그 권리가 모호해지는 문제가 있다. 즉, 빌드된 게임 프로그램이 GPL이 되어 버린다.

[링크 : https://namu.wiki/w/BGE]

 

The Godot Engine is a free, all-in-one, cross-platform game engine that makes it easy for you to create 2D and 3D games.

[링크 : https://godotengine.org/]

'프로그램 사용 > Blender' 카테고리의 다른 글

blender cad  (0) 2024.05.07
blender render node  (0) 2024.03.20
blender on macos  (0) 2022.05.24
big bunny blender project file  (0) 2022.05.22
블렌더 강좌? (유료)  (0) 2021.08.07
Posted by 구차니

실밥도 다음주에 풀고

반깁스도 아닌 완전깁스를 다음주에 할 예정

4주간 깁스하고

1년뒤에 철심을 뽑아야 하는데 어우...

 

오늘 보험청구왕창하고

하나는 일단 들어와서 행복해짐 (아내가)

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

통깁스  (0) 2023.10.26
으아아아앙  (0) 2023.10.23
투병일기 - 목욕  (2) 2023.10.16
투병일기 - 닭닭닭  (0) 2023.10.15
투병일기 - 하루가 짧다.  (0) 2023.10.14
Posted by 구차니
Linux API/linux2023. 10. 19. 16:21

관용적으로 malloc() 해서 받은 인자가 0인지 확인하고(fail)

그 값을 포인터에 넣고 썼을 뿐이고, free() 하면서 null 값을 넣어주곤 했는데

반대로 system call이나 라이브러리를 이용하여

현재 사용중인 프로그램에서 malloc()을 요청해서 관리중인 리스트 이런건 구할 수 없는건가?

조사가 필요한 듯..

 

[링크 : https://www.gnu.org/software/libc/manual/html_node/Memory-Allocation-Probes.html]

[링크 : https://www.reddit.com/r/cpp_questions/comments/pi8lhg/how_do_i_check_if_a_pointer_is_valid/]

[링크 : https://stackoverflow.com/questions/993324/how-to-check-if-a-pointer-is-valid]

[링크 : https://stackoverflow.com/questions/5716100/what-happens-in-the-kernel-during-malloc]

'Linux API > linux' 카테고리의 다른 글

/proc/uptime  (0) 2023.10.24
/proc/pid/statm  (0) 2023.10.23
inotify  (0) 2023.06.21
system v shmget size  (0) 2023.01.09
segfault시 calltree 출력하기  (0) 2022.11.28
Posted by 구차니