Welcome to Jun's Note!

Common Python Operations

File Operations Time Handling This post lists some common operations in Python such as file operation and time handling. File Operations try: with open('infile','r') as infile, open('outfile','r') as outfile: for... Read more »

File Operations in C++

Open and Close Read and Write Position a Stream Binary Files Buffers and Sybchronization The following classes are needed for reading from or writing to files: ofstream: stream class to... Read more »

Process Environment

main Function Process Termination Process Termination exit, Exit and _exit Functions atexit Function Environment List Memory Layout of a C Program Memory Allocation malloc, calloc and realloc Functions Environment Variables... Read more »

Common Vim Commands

Text Edit Copy, Paste and Select Replace and Substitute Undo and Redo Indent Code Block Locate and Jump Search and Substitute Global Operation File Operations Window Configuration http://smilent.github.io This blog... Read more »

Time and Date Routines

This blog is a note of Chapter 6 (System Data Files and Information) in APUE. The basic time service provided by the UNIX kernel counts the number of seconds that... Read more »

Correct linenos in Jekyll

Updated on 18, April: linenos works properly on Jekyll 3.* with kramdown and rouge. I use kramdown as Jekyll’s default markdown implementation. By default, line numbers in a code block... Read more »

Standard I/O Library

Streams and FILE Objects Standard Input, Standard Output, and Standard Error Buffering Opening a Stream Reading and Writing a Stream Input Functions Output Functions Line-at-a-Time I/O Binary I/O Positioning a... Read more »

Files and Directories

File Types User ID and Group ID File Access Permissions Functions stat, fstate, fstatat, and lstat umask chmod, fchmod, and fchmodat truncate link, linkat, unlink, unlinkat, and remove rename and... Read more »