Recent posts

tmux setting

July 08 2023

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

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...

[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...

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...

[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 ...

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 ...