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

  1. 2023.09.14 알뜰카드 도착, 앱 설치 완료!
  2. 2023.09.14 arm asm rev
  3. 2023.09.13 golang echo 패키지 소스
  4. 2023.09.12 사과!!!
  5. 2023.09.12 의약품 RFID 2
  6. 2023.09.11 사과는 애플
  7. 2023.09.10 사과 사세요~
  8. 2023.09.09 처갓댁 당일치기
  9. 2023.09.08 어지러워
  10. 2023.09.08 wayland hdmi - touch 연결

좀 오래전 부터 고민하던걸 이제 시도!

[링크 : https://alcard.kr/]

 

예전에는 국민은행이 없었는데 이제 생겨서 과감하게 체크로 신청!

포인트로를 쌓아서 먼가 해본적이 없는데(워낙 잘 안쌓이니..)

알뜰교통카드로 사용해서 후불제로 사용하는 금액 전부의 10% 적립되는진 모르겠다.

설마 할인 받아서 캐시백 된건 안된다고 하는건 아니겠지?

아무튼 10%가 2천이니 2만원 후불 교통으로 쓰면 된다는건데 2천점 적립해서 어떻게 쓸수 있냐가 문제일 듯

과거에는 적립금액이 만단위는 되어야 겨우 먼가 쓸 수 있었던것 같은데 좀 나아졌으려나?

[링크 : https://card.kbcard.com/CRD/DVIEW/HCAMCXPRICAC0076?mainCC=a&cooperationcode=09322]

 

신용카드는 연회비 8천에 실적 30만원이라 이래저래 관리가 힘들어서 포기!

 

원래는 집에서 나갈때 출발 누르고

회사 도착할때 도착 누르면 되는것 같은데

"즐겨찾기"에 넣어두면 버튼 누르지 않아도 마일리지가 된다고 한다.

근데 잘 안되면 그냥 꽁돈(?) 날리는 셈이 될 것 같은데 귀찮아도 해봐야 하나..

첫달이니 일단은 내일 바로 즐겨찾기 하고 시도해봐야 할 듯.

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

도대체 얘 정체가 머지?  (0) 2023.09.18
바쁜데 남은게 없는 느낌  (0) 2023.09.15
미칠듯한 피곤  (0) 2023.08.22
다이조아 부품 데이터 시트  (0) 2023.08.10
다이조아 택베도착  (0) 2023.08.09
Posted by 구차니
embeded/ARM2023. 9. 14. 12:33

 

On ARMv6 and above, you can just use the rev instruction, but I assume that you're not allowed to do that for whatever reason.

[링크 : https://stackoverflow.com/questions/2755171/arm-assembly-converting-endianness]

 

REV
Reverse the byte order in a word.

Syntax
REV{cond} Rd, Rn

where:

cond
is an optional condition code.

Rd
is the destination register.

Rn
is the register holding the operand.

[링크 : https://developer.arm.com/documentation/dui0473/m/arm-and-thumb-instructions/rev]

 

unsigned int foo(unsigned int a)
{
  return __builtin_bswap32(a);
}

[링크 : https://stackoverflow.com/questions/35133829/does-arm-gcc-have-a-builtin-function-for-the-assembly-rev-instruction]

[링크 : https://teus.me/726]

 

gcc built-in function 이고 자매품(?) 으로 __builtin_bswap16 이라는 녀석도 있다.

Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
Similar to __builtin_bswap16, except the argument and return types are 32-bit.

[링크 : https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html]

 

어.. vertorized 안되면.. 그냥 쌩으로 for 돌려야 하는건데...?! 이럼 나가리인데?!?!?

지원되는 GCC 비벡터 내장 함수
마지막 업데이트 날짜: 2023-07-13

IBM® Open XL C/C++ for AIX® 17.1.1 는 다음 GCC 비벡터 내장 함수를 지원합니다.

[링크 : https://www.ibm.com/docs/en/openxl-c-and-cpp-aix/17.1.0?topic=functions-supported-gcc-non-vector-built-in]

'embeded > ARM' 카테고리의 다른 글

SVE(Scalable Vector Extension)  (0) 2025.08.28
emmc 파티션 정렬  (0) 2024.02.07
cortex-a53  (0) 2023.08.31
aarch64 vector register  (0) 2023.08.23
arm vsub operator  (0) 2023.08.09
Posted by 구차니
Programming/golang2023. 9. 13. 14:45

v4 1.10.2 쓰고 있어서 혹시 v4 1.11.1로 올리면 나아질까 싶었는데 달라진게 없어서 (StaticWithConfig)

코드를 뜯어보니 왜 안되나 조금 감이 오는 듯

 

아무튼 url에 디렉토리 명만 쓰고 / 로 끝나지 않으면 이상하게 작동하는거랑

symbolic link는 못 따라가는거랑은

 

info.IsDir() 때문인 것 같은데

수정해서 써야하나.. 아니면 일부만 오버라이드(?)해서 쓸수 있으려나?

 

[링크 : https://github.com/labstack/echo/blob/master/middleware/static.go]

'Programming > golang' 카테고리의 다른 글

golang echo bind  (0) 2023.11.06
golang echo 구조체 배열은 미지원?  (0) 2023.11.06
go packed struct  (0) 2023.09.01
golang asm  (0) 2023.08.24
golang goarch=arm64 와 디스어셈블러  (0) 2023.08.23
Posted by 구차니

어우 토나와

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

반년치 장보기  (0) 2023.09.17
이동 이동 이동  (0) 2023.09.16
사과는 애플  (0) 2023.09.11
사과 사세요~  (0) 2023.09.10
처갓댁 당일치기  (0) 2023.09.09
Posted by 구차니

구내염이 심해서 약을 사는데 RFID라고 써있어서 보니 뚜껑에 먼가 있긴 있다.

 

0

혹시나 하는 마음에 NFC로 핸드폰 이용해서 읽어 보는데 안되서 검색해보니

RFID라서 NFC로는 안읽히는게 맞는듯.

 

그러고 보니.. 주파수 저거 웬지 익숙한(?) 숫자인데 옛날 세콤에서 사용하던 출입태그 아닌가?!

 

13.56MHz RFID 태그를 부착

[링크 : http://www.klnews.co.kr/news/articleView.html?idxno=78779]

'하드웨어 > rfid_nfc_smartcard' 카테고리의 다른 글

rfid, smart card reader  (0) 2025.02.12
ubunut smart card 읽기  (0) 2025.02.12
ATR (Answer To Reset)  (0) 2025.02.12
rfid 12.5M / 125k  (0) 2024.07.25
라즈베리 파이 2 - RFID 리더(125KHz)  (0) 2015.07.13
Posted by 구차니

어우 죽을.맛

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

이동 이동 이동  (0) 2023.09.16
사과!!!  (0) 2023.09.12
사과 사세요~  (0) 2023.09.10
처갓댁 당일치기  (0) 2023.09.09
어지러워  (0) 2023.09.08
Posted by 구차니

사과폰 팔진 않습니다(!)

 

장인어른 사과팔아드린다고 죽을 지경 ㅋㅋ

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

사과!!!  (0) 2023.09.12
사과는 애플  (0) 2023.09.11
처갓댁 당일치기  (0) 2023.09.09
어지러워  (0) 2023.09.08
배탈, 몸살, 피곤  (0) 2023.09.06
Posted by 구차니

어우 눈아파

 

이제 사과사세요 모드

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

사과는 애플  (0) 2023.09.11
사과 사세요~  (0) 2023.09.10
어지러워  (0) 2023.09.08
배탈, 몸살, 피곤  (0) 2023.09.06
피곤  (0) 2023.09.03
Posted by 구차니

약 기운인가 ㅠㅠ

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

사과 사세요~  (0) 2023.09.10
처갓댁 당일치기  (0) 2023.09.09
배탈, 몸살, 피곤  (0) 2023.09.06
피곤  (0) 2023.09.03
뚝섬 유원지 물놀이  (0) 2023.08.19
Posted by 구차니

윈도우와는 다르게 리눅스에서는

HDMI + touch를 연결하면 자꾸 0번 디스플레이와 새로 연결된 터치가 연결된다.

 

윈도우에서 지금까진 안맞는적은 없었는데, 연결방법 글이 있는걸 보면 아주 없진 않나보다.

아무튼 윈도우는 어떤 시나리오로 되길래 외부 모니터와 touch를 잘 매칭해주는진 모르겠지만

[링크 : https://comterman.tistory.com/2738]

 

wayland 나 x.org 에서는 영~ 매칭이 잘 안된다.

화면 찢어짐 때문에 wayland로 해놨는데 그 여파로 따라해봐도 스크린에 터치가 옮겨가진 않는다.

[링크 : https://askubuntu.com/questions/71768/touchscreen-and-additional-external-monitor]

[링크 : https://unix.stackexchange.com/questions/473721/calibrating-a-touch-screen-on-dual-monitors-one-touch-one-not]

 

libinput-device.c를 보면 아래 함수 두개에 associated 용어를 표현하며

입력 장치를 evdev의 이벤트를 통해 연결하는데, 회사에서 시험해볼때는

touch 장치 쪽에서 연결할 스크린 명칭을 넣어주지 않아서인지 제대로 연결되는걸 못 본 듯.

void
evdev_device_set_calibration(struct evdev_device *device)
{
struct udev *udev;
struct udev_device *udev_device = NULL;
const char *sysname = libinput_device_get_sysname(device->device);
const char *calibration_values;
uint32_t width, height;
struct weston_touch_device_matrix calibration;

if (!libinput_device_config_calibration_has_matrix(device->device))
return;

/* If LIBINPUT_CALIBRATION_MATRIX was set to non-identity, we will not
* override it with WL_CALIBRATION. It also means we don't need an
* output to load a calibration. */
if (libinput_device_config_calibration_get_default_matrix(
device->device,
calibration.m) != 0)
return;

/* touch_set_calibration() has updated the values, do not load old
* values from WL_CALIBRATION.
*/
if (device->override_wl_calibration)
return;

if (!device->output) {
weston_log("input device %s has no enabled output associated "
"(%s named), skipping calibration for now.\n",
sysname, device->output_name ?: "none");
return;
}

void
evdev_device_set_output(struct evdev_device *device,
struct weston_output *output)
{
if (device->output == output)
return;

if (device->output_destroy_listener.notify) {
wl_list_remove(&device->output_destroy_listener.link);
device->output_destroy_listener.notify = NULL;
}

if (!output) {
weston_log("output for input device %s removed\n",
libinput_device_get_sysname(device->device));

device->output = NULL;
return;
}

weston_log("associating input device %s with output %s "
"(%s by udev)\n",
libinput_device_get_sysname(device->device),
output->name,
device->output_name ?: "none");

device->output = output;
device->output_destroy_listener.notify = notify_output_destroy;
wl_signal_add(&output->destroy_signal,
&device->output_destroy_listener);
evdev_device_set_calibration(device);
}

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

weston evdev libinput  (0) 2024.03.11
weston 커서 숨기기  (0) 2024.02.26
wayland atomic commit 패치?  (0) 2022.08.22
weston screen shooter 뜯어보기  (0) 2022.08.17
wayland glreadpixels 실패  (0) 2022.08.16
Posted by 구차니