'잡동사니'에 해당되는 글 13665건

  1. 2022.03.20 맥(카탈리나) 환경 설정 중
  2. 2022.03.19 별다방 마패 지름 2
  3. 2022.03.18 라즈베리 파이2 / 마인크래프트
  4. 2022.03.18 맥북 2012 예약
  5. 2022.03.18 plc timer 주기적인 on off
  6. 2022.03.18 lse modbus rs232
  7. 2022.03.18 weston debug message
  8. 2022.03.17 weston drm atomic
  9. 2022.03.17 mscgen
  10. 2022.03.17 gcc / 문자열 선언
Apple2022. 3. 20. 11:08

판매자 말로는 6시간은 쓴다고 했으니 한번 테스트는 해봐야지

그나저나 'ㅏ' 가 조금 강하게 눌러야 쳐지는 느낌이다.

 

파이썬 3는 쉘 확장으로 되어있는지 터미널에서 python3 입력하니 알아서 설치한다.

 

ssh x11 forwarding에는 xqurartz 라는걸 설치하면 된다고 하고

[링크 : https://www.xquartz.org/]

 

vscode 와 chrome은  dmg로 받아서 설치하면 끝

vscode는 finder에서 응용프로그램으로 던져주면 설치되고

vscode에서 path를 지정하도록 하면 콘솔에서도 code 명령으로 실행이 가능해 진다.

[링크 : https://www.lainyzine.com/ko/article/how-to-execute-visual-studio-code-from-terminal/]

[링크 : https://www.lainyzine.com/ko/article/how-to-install-visual-studio-code-on-macos/]

'Apple' 카테고리의 다른 글

macos ssh 서버 구동  (0) 2022.03.25
macos python opengl  (0) 2022.03.21
dmg 파일 분해  (0) 2022.03.21
mac python opencv 설치  (0) 2022.03.20
mac os  (0) 2022.03.20
Posted by 구차니
개소리 왈왈/컴퓨터2022. 3. 19. 21:09

이제 나도 당당하게 별다방에 입장이 가능한건가!

 

제스쳐랑 단축키랑 익히는 중 -_ㅠ

확실히 터치패드가 커서 좋고, OS에서 기본으로 제스쳐가 제공되니 또 좋긴 하다.

 

일단.. 한손으로 들고 지하철에서 하기에는 너무 바닥이 매끄러워서 떨어트릴 우려가 있다 보니

오히려 앉아서 무릎에 얹고 해야 하지 않나.. 생각된다.

 

사과에 불 들어오는 바로 이 갬성! ㅋㅋ

 

램이 적어서 아쉽지만 해상도가 높아져서 만족.

카탈리나 보안 업데이트 한번 하다가 뻗어서 재시작하고

꽤 오래 걸려서 정상작동중.

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

IE11 도 안녕  (0) 2022.05.25
맥 조금 써보고 나서 내린 결론  (0) 2022.05.15
맥북 2012 예약  (0) 2022.03.18
백업 서버 구성  (0) 2022.03.06
supermicro 서버 첫 ipmi 접속  (0) 2022.02.26
Posted by 구차니
embeded/raspberry pi2022. 3. 18. 23:42

이거 하나 찾으려고 개고생중

일단 wheezy 에 있다고 하는데

jessie 이미지 받아서 해보니 라즈베리 3는 작동 안되고 2에서는 울프람과 마인크래프트가 존재하는 것 확인

 

bullseye 32bit나 64bit에는 당연히(!) 없네 

'embeded > raspberry pi' 카테고리의 다른 글

linux iio adc + rpi  (0) 2022.06.20
PI 400 써봄  (0) 2022.05.25
rpi opencv python pid servo  (0) 2022.03.08
rpi i2c oled  (0) 2022.02.10
라즈베리 파이 부품 도착  (0) 2022.02.09
Posted by 구차니
개소리 왈왈/컴퓨터2022. 3. 18. 22:59

흐음.

잘하는 걸까 ㅠㅠ

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

맥 조금 써보고 나서 내린 결론  (0) 2022.05.15
별다방 마패 지름  (2) 2022.03.19
백업 서버 구성  (0) 2022.03.06
supermicro 서버 첫 ipmi 접속  (0) 2022.02.26
플로피  (0) 2022.02.25
Posted by 구차니
하드웨어/PLC (LSE)2022. 3. 18. 16:04

타이머 두개를 이용해서 서로 상대의 값을 트리거로 출력하게 하면 되는데..

타임 그래프는 XG5000 시뮬레이터가 있으려나?

 

[링크 : https://gammabeta.tistory.com/m/2561]

'하드웨어 > PLC (LSE)' 카테고리의 다른 글

QLight ST56LF 사용  (0) 2022.03.21
lse xgk-cpue rs232/modbus 연결  (0) 2022.03.21
lse modbus rs232  (0) 2022.03.18
LSE PLC Write  (0) 2022.03.17
LSE PLC XG5000 / 주소  (0) 2022.03.17
Posted by 구차니
하드웨어/PLC (LSE)2022. 3. 18. 13:39

LSE cpu 모듈에 내장된 rs232로 modbus 통신이 가능하다고 함.

 

[링크 : https://mech19.tistory.com/42]

[링크 : https://smart-factory-plc.tistory.com/302]

[링크 : https://dongwunhmi.tistory.com/32]

'하드웨어 > PLC (LSE)' 카테고리의 다른 글

lse xgk-cpue rs232/modbus 연결  (0) 2022.03.21
plc timer 주기적인 on off  (0) 2022.03.18
LSE PLC Write  (0) 2022.03.17
LSE PLC XG5000 / 주소  (0) 2022.03.17
plc ladder diagram  (0) 2022.02.14
Posted by 구차니
프로그램 사용/wayland2022. 3. 18. 11:35

해당 명령을 입력한 콘솔로 출력된다. (시리얼, ssh 에서 각각 해 봄)

 

export WAYLAND_DEBUG=1

[링크 : https://wiki.st.com/stm32mpu/wiki/How_to_debug_Weston]

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

libwayland  (0) 2022.06.27
weston desktop-shell output destory  (0) 2022.06.08
weston drm atomic  (0) 2022.03.17
wayvnc 실행 실패  (0) 2022.02.17
wayland-scanner  (0) 2022.02.16
Posted by 구차니
프로그램 사용/wayland2022. 3. 17. 16:39

테스트 중 아래와 같은 에러가 보여서 atomic이 먼가 찾아보는데..

[11:49:06.216] atomic: couldn't commit new state: Invalid argument
[11:49:06.217] repaint-flush failed: Invalid argument

 

말그대로.. 데이터의 atomic이 깨졌다는 건가..

At the other end there's struct drm_plane, representing a scanout engine that reads pixel data from memory represented by a struct drm_framebuffer and provides it to the display hardware.

[링크 : https://lwn.net/Articles/653071/]

 

backend-drm/kms.c 에서 해당 에러를 출력한다.

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

weston desktop-shell output destory  (0) 2022.06.08
weston debug message  (0) 2022.03.18
wayvnc 실행 실패  (0) 2022.02.17
wayland-scanner  (0) 2022.02.16
wayland wl_fixed_t 변수  (0) 2022.02.07
Posted by 구차니
파일방2022. 3. 17. 12:34

weston 소스를 보다보니 msc 라는 희한한 확장자가 보여서 조사.

initial-heads.msc

 

느낌을 봐서는 코드 제너레이터는 아니고 png로 무언가 생성하는 것 같은데

#!/usr/bin/mscgen -Tpng

msc {
hscale="1.5";

c [label = "compositor"], w [label = "libweston core"],
b [label = "backend"];

|||;

c => w [label = "weston_compositor_load_backend()"];
w => b [label = "init"];

--- [label = "Create initial heads"];
b box b [label = "Backend discovers an entity to create a head for."];

w <: b [label = "weston_head_init()"];
b box b [label = "assign hw resource to head"];
w <: b [label = "weston_head_set_monitor_strings()"];
w <: b [label = "weston_head_set_physical_size()"];
w <: b [label = "weston_head_set_subpixel()"];
w <: b [label = "weston_head_set_connection_status()"];
w <= b [label = "weston_compositor_add_head()"];
w <= w [label = "schedule heads_changed"];
w << b [label = "init success"];
c << w [label = "load success"];

|||;

--- [label = "Compositor start-up"];

c => w [label = "weston_compositor_flush_heads_changed()"];
c <<= w [label = "heads_changed callback"];

}

 

아래와 같이 시퀀스 다이어그램을 그려주는 역활이라고.

[링크 : https://www.mcternan.me.uk//mscgen/]

[링크 : https://iamaman.tistory.com/1642]

'파일방' 카테고리의 다른 글

debian noroot 와 userland  (0) 2022.05.02
ansi to html  (1) 2022.03.31
android userland ubuntu  (0) 2022.03.03
bingwall (for ubuntu)  (0) 2022.01.19
bios 초기화 관련  (0) 2020.09.07
Posted by 구차니
프로그램 사용/gcc2022. 3. 17. 12:05

weston 소스를 보는데 희한한(?) 문자열 선언이 보여서 확인

static const char * const connector_type_names[] = {
[DRM_MODE_CONNECTOR_Unknown]     = "Unknown",
[DRM_MODE_CONNECTOR_VGA]         = "VGA",
[DRM_MODE_CONNECTOR_DVII]        = "DVI-I",
[DRM_MODE_CONNECTOR_DVID]        = "DVI-D",
[DRM_MODE_CONNECTOR_DVIA]        = "DVI-A",
[DRM_MODE_CONNECTOR_Composite]   = "Composite",
[DRM_MODE_CONNECTOR_SVIDEO]      = "SVIDEO",
[DRM_MODE_CONNECTOR_LVDS]        = "LVDS",
[DRM_MODE_CONNECTOR_Component]   = "Component",
[DRM_MODE_CONNECTOR_9PinDIN]     = "DIN",
[DRM_MODE_CONNECTOR_DisplayPort] = "DP",
[DRM_MODE_CONNECTOR_HDMIA]       = "HDMI-A",
[DRM_MODE_CONNECTOR_HDMIB]       = "HDMI-B",
[DRM_MODE_CONNECTOR_TV]          = "TV",
[DRM_MODE_CONNECTOR_eDP]         = "eDP",
[DRM_MODE_CONNECTOR_VIRTUAL]     = "Virtual",
[DRM_MODE_CONNECTOR_DSI]         = "DSI",
[DRM_MODE_CONNECTOR_DPI]         = "DPI",
};

 

느낌은 알겠는데.. 도대체 어디서 정의된 문법이냐...

$ cat str.c
#include <stdio.h>

static const char * const connector_type_names[] = {
        [0]     = "Unknown",
        [1]         = "VGA",
        [2]        = "DVI-I",
        [3]        = "DVI-D",
        [4]        = "DVI-A",
        [5]   = "Composite",
        [6]      = "SVIDEO",
        [7]        = "LVDS",
        [8]   = "Component",
        [9]     = "DIN",
        [10] = "DP",
        [11]       = "HDMI-A",
        [12]       = "HDMI-B",
        [13]          = "TV",
        [14]         = "eDP",
        [15]     = "Virtual",
        [16]         = "DSI",
        [17]         = "DPI",
};

void main()
{
        for(int i = 0; i < 10; i++)
                printf("%s\n",connector_type_names[i]);
}

$ gcc str.c
$ ./a.out
Unknown
VGA
DVI-I
DVI-D
DVI-A
Composite
SVIDEO
LVDS
Component
DIN

 

 

$ cat str.c
#include <stdio.h>

static const char * const connector_type_names[] = {
        [2]     = "Unknown",
        [1]         = "VGA",
        [0]        = "DVI-I",
        [3]        = "DVI-D",
        [4]        = "DVI-A",
        [5]   = "Composite",
        [6]      = "SVIDEO",
        [7]        = "LVDS",
        [8]   = "Component",
        [9]     = "DIN",
        [10] = "DP",
        [11]       = "HDMI-A",
        [12]       = "HDMI-B",
        [13]          = "TV",
        [14]         = "eDP",
        [15]     = "Virtual",
        [16]         = "DSI",
        [17]         = "DPI",
};

void main()
{
        for(int i = 0; i < 10; i++)
                printf("%s\n",connector_type_names[i]);
}

$ gcc str.c
$ ./a.out
DVI-I
VGA
Unknown
DVI-D
DVI-A
Composite
SVIDEO
LVDS
Component
DIN

 

 

+

ISO C99, GNU C90 에서 지원하는 듯.

In ISO C99 you can give the elements in any order, specifying the array indices or structure field names they apply to, and GNU C allows this as an extension in C90 mode as well. This extension is not implemented in GNU C++.
To specify an array index, write ‘[index] =’ before the element value. For example,

int a[6] = { [4] = 29, [2] = 15 };

[링크 : https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html]

 

$ gcc -std=c89 str.c
str.c: In function ‘main’:
str.c:26:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  for(int i = 0; i < 10; i++)
  ^~~
str.c:26:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

$ gcc -std=c90 str.c
str.c: In function ‘main’:
str.c:26:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  for(int i = 0; i < 10; i++)
  ^~~
str.c:26:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

$ gcc -std=c99 str.c

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

gcc fstack-protector-strong  (0) 2022.12.06
gcc vectorization 실패  (0) 2022.06.02
static link  (0) 2022.02.07
구조체 타입과 변수명은 구분된다?  (0) 2021.11.18
gcc unsigned to signed upcast 테스트  (0) 2021.07.08
Posted by 구차니