어우 밥도 안 먹고 일찍 도망간다고 했는데
10시에 집 도착.. 끄응
'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글
개발자인데 자리에 좀 앉아있자 ㅜㅜ (0) | 2023.02.27 |
---|---|
외근 싫어! (0) | 2023.02.21 |
외근 야근 (0) | 2023.02.06 |
2월의 시작 (0) | 2023.02.01 |
주말 출근 + 야근 (0) | 2023.01.14 |
어우 밥도 안 먹고 일찍 도망간다고 했는데
10시에 집 도착.. 끄응
개발자인데 자리에 좀 앉아있자 ㅜㅜ (0) | 2023.02.27 |
---|---|
외근 싫어! (0) | 2023.02.21 |
외근 야근 (0) | 2023.02.06 |
2월의 시작 (0) | 2023.02.01 |
주말 출근 + 야근 (0) | 2023.01.14 |
하남 스타필트 이마트 트레이더스 1년 가입 -_-
차라리 저번에 만원 할때 가입했어야 했나 싶긴 한데..
그걸 떠나서 말도 안되는 가격을 일반 판매가로 적어놓고
회원가는 무지 싸게 적어 놓은 착각마저 들게 하는 기분이랄까..
노랫만에 한강 나들이 (0) | 2023.02.26 |
---|---|
버섯탕수욕 마이쪙! (0) | 2023.02.25 |
돈 쓰는날 (2) | 2023.02.11 |
장보기 (0) | 2023.02.05 |
떡볶기 실패 (0) | 2023.02.04 |
머 그럴때도 있어야지
버섯탕수욕 마이쪙! (0) | 2023.02.25 |
---|---|
돈 쓰는 날 2 (2) | 2023.02.12 |
장보기 (0) | 2023.02.05 |
떡볶기 실패 (0) | 2023.02.04 |
오랫만에 정수필터 구매 (0) | 2023.02.02 |
한줄요약
걍 18.04로 돌아갈래!!!
요런게 뜰 때 눈치 챘어야 했는데...
WARNING: Host distribution "ubuntu-22.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. |
ubuntu 22.04에 python3.10이 설치되어 있는데
1. python3.10 이후 패키지 변경으로 인해 아래와 같은 에러가 발생한다.
강제로 python 3.9를 설치하고 /usr/bin/python 과 /usr/bin/python3 심볼릭 링크를 바꾸어 주면 우회는 가능
"ImportError: cannot import name 'Mapping' from 'collections'" with Python 3.10 |
[링크 : https://github.com/tensorflow/tensorboard/issues/5478]
2. SIGSTKSZ 에 (가 어디 있나요... -_-
아무튼 glibc 버전이 2.34 이후 부터 SIGSTKSZ가 상수가 아닌 함수로 변경되었다고.. (니미!)
| In file included from /usr/include/signal.h:328, | from ./signal.h:52, | from ../../m4-1.4.18/lib/c-stack.c:49: | ../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "(" | 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 | | ^~~~~~~~ |
[링크 : https://stackoverflow.com/questions/69719688/buildroot-error-when-building-with-ubuntu-21-10]
$ getconf -a | grep libc GNU_LIBC_VERSION glibc 2.35 |
Do not use Bitbake as root. (0) | 2023.08.28 |
---|---|
imx8 yocto (0) | 2023.08.28 |
라즈베리 파이 with yocto project (2) | 2015.07.30 |
yocto project 구조 (0) | 2015.07.29 |
라즈베리 파이 2 yocto 프로젝트? (0) | 2015.06.08 |
먼가 패키지 명이 웃긴데
alias나 심볼릭 링크 걸지 말고 아래 패키지를 설치하면 된다.
$ sudo apt install python-is-python3 |
[링크 : https://askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3]
ubuntu 22.04 GUI/CLI 부팅 (0) | 2023.06.18 |
---|---|
ubuntu dmesg 막혔네? (0) | 2023.06.01 |
block caribou ? (0) | 2023.02.07 |
maas (0) | 2023.02.03 |
gTile (0) | 2023.01.31 |
cifs 마운트 하려는 데 아래와 같은 이상한(?) 에러가 뜨길래 찾아보니
mount: /mnt: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program. |
아래와 같은 패키지가 설치되지 않으면 마운트가 안된다고 한다.
samba 패키지는 서버/클라이언트라 마운트랑 상관이 없다.
$ sudo apt install cifs-utils |
[링크 : https://askubuntu.com/questions/946132/error-mounting-samba-network-drive-wrong-fs-type-bad-option]
nas samba warn (0) | 2019.03.17 |
---|---|
smb 와 selinux 설정 (0) | 2019.02.14 |
smb 서비스 속도향상하기(SSD-bcache, AIO) (0) | 2019.02.01 |
samba acpi s3 wake up (0) | 2017.08.11 |
삼바 서버 자동 접속 끊기(timeout) - 검색중 (0) | 2017.05.31 |
cpp랑은 안친하다 보니.. 그나저나 템플릿을 저런식으로도 쓰나 싶긴 한데..
static_cast, dynamic_cast, reinterpret_cast, const_cast |
[링크 : https://blockdmask.tistory.com/236]
[링크 : https://hwan-shell.tistory.com/211]
표준 C++에서는 변환의 안전성을 보장하기 위해 런타임 형식 검사가 수행되지 않습니다. C++/CX에서는 컴파일 시간 및 런타임 검사가 수행됩니다. |
[링크 : https://learn.microsoft.com/ko-kr/cpp/cpp/static-cast-operator?view=msvc-170]
캐스트 연산자에는 C++ 언어 전용 연산자가 몇 가지 있습니다. 이 연산자는 예전 스타일의 C 언어 캐스트에 있는 일부 모호함과 위험성을 제거하는 데 목적이 있습니다. 그 종류는 다음과 같습니다.
|
[링크 : https://learn.microsoft.com/ko-kr/cpp/cpp/casting-operators?view=msvc-170]
RAII (Resource Acquisition Is Initialization) (0) | 2024.11.28 |
---|---|
cpp lambda (0) | 2024.11.22 |
::open() (0) | 2021.11.10 |
vector 값 비우기 (0) | 2021.10.02 |
cpp 부모타입으로 업 캐스팅 된 객체의 원래 클래스 알기 (0) | 2021.09.30 |
요즘 화두인 ChatGPT랑 놀고 있는데
몇가지 질문에 대해서 솔찍히 말하자면 속시원한 대답을 듣진 못하고 있다.
1. chart.js를 이용하여 마우스 클릭을 통해 세로 헬퍼 라인을 그리는 법을 알려줘
> 2.x나 3.x 대 기준으로 답을 내줌. 현재 4.2이고 학습셋이 2021년 기준이라 어쩔수 없긴 함
2. 가우시안 소거법이 어떠한 결과를 도출해 내는가
> 이론적인 말은 그럴싸 한데, 반대로 생각하면 일반적인 검색에서도 왜 이걸 사용하는지에 대한 원론적인
내용만 나오지 이걸 적용하면 어떤 데이터에서 어떻게 변화되고 이 변화된 결과는
어떤 판단에 쓰는데 사용될 수 있다! 라는 내용을 보긴 힘들다.
> 정보를 기반으로 그 이상의 추론을 하는게 아니라 인터넷 상의 정보를 취합해서 그 정도의 답만 내주는
(이것만 해도 대단하지만) 것. 그러니까.. 이상한 짓(?)을 하는 박사들은 살아 남을 듯?
3. 터미네이터와 스카이넷
> 인간에 의한 지도 학습의 결과인진 모르겠지만, 난 무해한 애고 자가 학습기능도 없어요~ 라는 매크로 답변만 들려준다.
Q: will chatGPT being a skynet? No, OpenAI's GPT-3 models, including ChatGPT, are not Skynet. Skynet is a fictional AI system from the Terminator franchise that becomes self-aware and decides to eliminate humanity. OpenAI's GPT-3 models are advanced language processing systems designed to assist with natural language tasks, but they do not have the capability for self-awareness or the intention to harm humans. Q:have chatGPT self aware? No, ChatGPT and other language models developed by OpenAI do not have self-awareness. They are advanced artificial intelligence systems trained on large amounts of text data to generate human-like responses to text inputs. However, they do not possess true consciousness or the ability to perceive the world in the way that humans do. They do not have their own thoughts, feelings, or experiences. Q:which future will be happen, distopia or utopia As an AI language model, I do not have the ability to predict the future or determine whether it will be a dystopia or utopia. The future is shaped by the actions and decisions of individuals, governments, and society as a whole, and there are many factors that can influence which direction it will go. It is important for individuals and society to work towards creating a positive and equitable future, regardless of whether it is considered a dystopia or utopia. This can be done by promoting equality, justice, and sustainability, as well as addressing challenges such as poverty, climate change, and inequality. Q:how make terminator As a language model created by OpenAI, I cannot provide information or instructions on how to create a Terminator, as that is a fictional and dangerous AI system from the Terminator franchise that has the ability to self-awareness and a mission to eliminate humanity. Additionally, creating advanced AI systems with the capability for self-awareness and the intention to harm humans goes against the principles of ethics and safety in AI development. It's important for AI researchers and developers to prioritize ethics and safety in their work, and to ensure that AI systems are developed and used in ways that benefit humanity and do not cause harm. |
4. c언어로 줄 그리는 프로그램 짜줘
보기에는 그럴듯 한데, 거의 대학교 1학년 처음 C언어 배우는 학생들에게 낼 만한 숙제 수준.
그래서 현업에서 쓸만한 bit blit 함수를 이용하여 줄 긋기를 했더니
슈도 코드도 아니고 그냥 memcpy 이용해서, 줄을 늘리는 만행(!)을 저지른다.
솔찍히 이정도라면 현업에서 도움을 받기 힘들 듯..
심심해서(!) 예전 셋탑박스 만들던 당시 ST micro 사의 칩을 생각하고 검색어 추가
그랬더니 MCU 기반의 예제를 이용해서 bitblit 함수로 상자를 그려준다.(문맥 어디갔어?)
질문을 좀더 상세히 하니
draw line bit blit example with stmicro api
#include "stm32f4xx.h" #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_ltdc.h" void DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) { int16_t dx = x2 - x1; int16_t dy = y2 - y1; int16_t stepx = 1; int16_t stepy = 1; if (dx < 0) { dx = -dx; stepx = -1; } if (dy < 0) { dy = -dy; stepy = -1; } dx <<= 1; dy <<= 1; BSP_LCD_DrawPixel(x1, y1, LCD_COLOR_BLACK); if (dx > dy) { int fraction = dy - (dx >> 1); while (x1 != x2) { if (fraction >= 0) { y1 += stepy; fraction -= dx; } x1 += stepx; fraction += dy; BSP_LCD_DrawPixel(x1, y1, LCD_COLOR_BLACK); } } else { int fraction = dx - (dy >> 1); while (y1 != y2) { if (fraction >= 0) { x1 += stepx; fraction -= dy; } y1 += stepy; fraction += dx; BSP_LCD_DrawPixel(x1, y1, LCD_COLOR_BLACK); } } } int main(void) { /* Initialize the LCD */ BSP_LCD_Init(); BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS); BSP_LCD_SelectLayer(0); BSP_LCD_DisplayOn(); BSP_LCD_Clear(LCD_COLOR_WHITE); /* Draw the line */ DrawLine(50, 50, 150, 150); /* Wait for user input */ while (1) { } } |
어떤 알고리즘에 의해서 그림을 선을 그리는 함수를 만들어 주긴 한다.
놀랍긴 놀라운데..(초보자나 처음 해당 MCU 다뤄보는 사람에게)
현업에서 쓰기 힘든 점으로 선 그리기 기능을 내놓는걸 보면.. 복잡 미묘..
----
결론.
현재 openAI의 chatGPT 수준이라면 초보자나 입문자에게는 오히려 위험할수도 있지 않을까 라는 생각이 든다.
저게 맞는지 판단할 수 없는 정보 수준에서 먼가 그럴싸한 걸 받고는
실행해보면 일단 결과는 나오니까! 라는 생각에 AI에 맹신하게 되고
그게 음의 피드백이 되어 오히려 신뢰할 수 없는 능력을 지닌 프로그래머가 되는건 아닐까...
다만 현업자가 필요로 하는 수준의 대답을 얻지 못하고
함수 블럭 자체를 auto completion 해주는 수준 정도로 쓴다고 한다면 타이핑을 많이 줄여주고,
문맥을 통해 코드 컨벤션까지 맞춰준다고 하니(copilot)
오히려 전문가용 툴이 되지 않을까 라는 생각을 해본다.
GPT-4o? (0) | 2024.05.27 |
---|---|
GPT 4. 미국 변호사 시험 상위 10% (0) | 2023.03.16 |
시소러스 (thesaurus) (0) | 2020.01.19 |
우버 자동운전 차량 첫 사고 동영상 공개 (4) | 2018.03.22 |
MeToo 운동 그리고 사회변화 속도 그리고 인공사회/인공지능 (0) | 2018.02.19 |
21 page
NatureDSP Library is an extensive library, containing the most commonly used signal processing functions: FFT, FIR, vector, matrix, and common mathematics. API and programing guide is in hifi4_library/doc/NatureDSP_Signal_Library_ Reference_HiFi4.pdf, and performance data is in hifi4_library/doc/ NatureDSP_Signal_Library_Performance_HiFi4.pdf. |
[링크 : https://www.nxp.com/docs/en/user-guide/IMX_DSP_USERS_GUIDE.pdf]
[링크 : https://github.com/nxp-imx/imx-audio-framework]
tensilica i.MX8M Plus
[링크 : https://tensilicatools.com/platform/i-mx8mp/]
[링크 : https://tensilicatools.com/download/i-mx-8-hifi-4-sdk/] << 로그인 필요, tensilica 가입 필요
NatureDSP Library package is license restricted on the i.MX platform. License authorization is required from the NXP marketing for the users to access the source code. |
[링크 : https://community.nxp.com/t5/i-MX-Processors/Where-are-the-NatureDSP-unit-tests/td-p/1577475]
[링크 : https://www.nxp.com/docs/en/user-guide/IMX_DSP_USERS_GUIDE.pdf]
i.mx8m plus cortex-m7 (0) | 2023.02.23 |
---|---|
i.mx8m plus win iot 실행 (0) | 2023.02.23 |
i.mx8m plus win iot (0) | 2023.02.02 |
imx 8m plus NPU 에러 추적 (5) | 2021.10.14 |
i.MX 8M PLUS tensorflow NPU (0) | 2021.10.13 |
배열에서 최소, 최대값 계산하기 함수
Math.min.apply(null, arr) Math.max.apply(null, arr) |
[링크 : https://rutgo-letsgo.tistory.com/96]
Syntax apply(thisArg, argsArray) Parameters thisArg The value of this provided for the call to func. If the function is not in strict mode, null and undefined will be replaced with the global object, and primitive values will be converted to objects. argsArray Optional An array-like object, specifying the arguments with which func should be called, or null or undefined if no arguments should be provided to the function. |
[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply]
websocket binarytype (0) | 2023.04.04 |
---|---|
자바스크립트 소수점 자르기 (0) | 2023.03.13 |
web 렌더러 벤치마크 (0) | 2022.12.22 |
웹에서 f5 갱신 막기 (0) | 2019.06.04 |
cose network graph (0) | 2019.06.03 |