Posts by Tag

programming

Race condition

July 19 2020

A race condition occurs when two or more threads access a shared resource(such a file or variable) at the same time. In this case, each thread races to read ...

Message Queues

June 18 2020

IPC using message queue A message queues is one of IPC mechanism. It provides a way to send and get data between 2 unrelated processes. The 2 processes acces...

shell programming

June 08 2020

while loop in shell file while_loop.sh ```bash #!/bin/bash

function call trace in c program

June 08 2020

backtrace functions in c source code When we debugging, we sometimes need to figure out how the function was called. Here, I will describe the c functions th...

c/c++ library on Linux

June 08 2020

c shared library source code fourArithmeticOperation.h ```c #ifndef _FOURARITHMETICOPERATION #define _FOURARITHMETICOPERATION

FIFOs / Named pipe

June 08 2020

FIFOs / Named pipe FIFOs(it’s called to named pipe) is one of IPC(inter-process communication) way to send/receive data between processes. Especially, it can...

c++ template

June 08 2020

c++ template c++ template allows you to declare/implement a generic function/class that has a type parameter T instead of declaring/implementing all function...

gtk/gtkmm

March 01 2020

How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...

C++

c++ #include std::cout과 « 를 이용하여 출력 std::cin과 » 를 이용하여 입력 std::endl 을 이용하여 줄바꿈 새로운 표준 라이브러리를 사용할 경우, #include 를 사용. 과거의 표준 라...

Back to top ↑

c/c++

Race condition

July 19 2020

A race condition occurs when two or more threads access a shared resource(such a file or variable) at the same time. In this case, each thread races to read ...

Message Queues

June 18 2020

IPC using message queue A message queues is one of IPC mechanism. It provides a way to send and get data between 2 unrelated processes. The 2 processes acces...

function call trace in c program

June 08 2020

backtrace functions in c source code When we debugging, we sometimes need to figure out how the function was called. Here, I will describe the c functions th...

c/c++ library on Linux

June 08 2020

c shared library source code fourArithmeticOperation.h ```c #ifndef _FOURARITHMETICOPERATION #define _FOURARITHMETICOPERATION

FIFOs / Named pipe

June 08 2020

FIFOs / Named pipe FIFOs(it’s called to named pipe) is one of IPC(inter-process communication) way to send/receive data between processes. Especially, it can...

Back to top ↑

arduino

[Arduino Uno] DC motor control

March 30 2021

DC motor A DC motor is a device that converts direct current electrical energe into mechanical energy according to Fleming’s left-hand rule. A DC motor is c...

[Arduino Uno] External interrupt

February 14 2021

External interrupt On the Arduino Uno board, digital input pin 2 and 3 can be used as interrupt pins. A interrupt handler for an interrupt can be registered ...

[Arduino Uno] analogRead / analogWrite

February 03 2021

analogRead / analogWrite In the Arduino Uno board, there are 6 pins A0 ~ A5 that can read analog input voltages, and their resolution is 10 bits. That is, t...

[Arduino Uno] 7-Segment Display

February 14 2021

7 Segment Display 7 segment is a module representing a number in an embedded system. The number is divided into seven segments and represented by one LED per...

[Arduino Uno] 4bits LED binary counter

January 14 2021

circuit The circuit below is a 4bits binary counter with 4 red LEDs. The exact characteristics of the LED should be checked in its datasheet. It is assumed ...

Back to top ↑

linux

How to create files with random data

March 01 2021

Using “head” command to generate files create a 100M file filled with all 0’s. 1 $ head -c 100M /dev/zero > 100M_filled_with_zeros create a 100M file fil...

Split compression / decompression

March 02 2021

There are several ways to do split compression/decompression. Here I will introduce some methods. In this example, a 100MB file is divided and compressed in...

gentoo linux 에 Jekyll 설치 하기

March 22 2020

gentoo linux에서 Jekyll을 설치하는 방법에 대하여 간단히 포스팅한다. Jekyll을 사용하기 위해서는 ruby, bundler, jekyll이 설치되어 있어야 한다. Jekyll은 simple, blog-aware, static site generator tool...

Back to top ↑

c++

c++ template

June 08 2020

c++ template c++ template allows you to declare/implement a generic function/class that has a type parameter T instead of declaring/implementing all function...

C++

c++ #include std::cout과 « 를 이용하여 출력 std::cin과 » 를 이용하여 입력 std::endl 을 이용하여 줄바꿈 새로운 표준 라이브러리를 사용할 경우, #include 를 사용. 과거의 표준 라...

Back to top ↑

arm

arm gcc assembly in C

June 08 2020

arm gcc assembly in C General form of an inline assembler 1 asm(code : output operand list : input operand list : clobber list); Rotating bi...

Back to top ↑

assembly

arm gcc assembly in C

June 08 2020

arm gcc assembly in C General form of an inline assembler 1 asm(code : output operand list : input operand list : clobber list); Rotating bi...

Back to top ↑

gdb

Back to top ↑

vim

vim command

June 24 2020

Here I summarized vim commands that are used frequently for development. How to move cursor to the location in history

Back to top ↑

jekyll

gentoo linux 에 Jekyll 설치 하기

March 22 2020

gentoo linux에서 Jekyll을 설치하는 방법에 대하여 간단히 포스팅한다. Jekyll을 사용하기 위해서는 ruby, bundler, jekyll이 설치되어 있어야 한다. Jekyll은 simple, blog-aware, static site generator tool...

Back to top ↑

gtk

gtk/gtkmm

March 01 2020

How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...

Back to top ↑

gtkmm

gtk/gtkmm

March 01 2020

How to Compile Gtk 1 $ gcc -o example-2 example-2.c `pkg-config gtk+-3.0 –-cflags –-libs` How to Compile Gtkmm 1 $ g++ -o example-2 exam...

Back to top ↑

etc

ETC

March 01 2020

gcc로 컴파일 할때, -fstack-usage 옵션을 사용하면, function별로 stack 사용량을 .su file에 저장한다. function별로 사용되는 스택을 보여주고, 누적된 것을 보려면, 아래 링크를 참조. https://dzone.com/a...

Back to top ↑

linux Gentoo

Gentoo

March 01 2021

Gentoo Testing version 설치 하는 방법(패키지별) https://wiki.gentoo.org/wiki/Knowledge_Base:Accepting_a_keyword_for_a_single_package ncurses li...

Back to top ↑

git

Git

September 22 2021

reference https://newbedev.com/setting-up-and-using-meld-as-your-git-difftool-and-mergetool https://kparal.wordpress.com/2020/12/16/show-a-side-by-side-...

Back to top ↑

Tips

Tips

March 01 2020

Tips dokuwiki에서 media manager에서 파일 업로드가 되지 않는 경우, 아래 내용 참고. https://github.com/splitbrain/dokuwiki/issues/1104 dokuwiki table에서 자동변형하...

Back to top ↑

qemu

Back to top ↑

eclipse cdt

Back to top ↑

gnu global

Back to top ↑

gcc

Back to top ↑

shell

shell programming

June 08 2020

while loop in shell file while_loop.sh ```bash #!/bin/bash

Back to top ↑

yocto gdb

Back to top ↑

rdp ssh

RDP over ssh

March 01 2024

RDP over ssh using reminna After ssh connection in terminal, connect to localhost:59002 in reminna run command in terminal 1 ssh -L 59002:localhost...

Back to top ↑

yocto qemu kernel gdb debugging

Back to top ↑

tmux

tmux setting

July 08 2023

tmux는 하나의 터미널 창에서 여러개의 터미널을 생성하여 사용할 수 있게 해주는 툴이다. tmux는 많은 옵션을 가지고 있는데, 그중 기본적인 사용방법을 아래에 정리하였다.

Back to top ↑

rust

Back to top ↑