Similar Posts
How to call C functions from OCaml code
I am writing a OCaml program but want to call some C functions provided in some source code or library. How to achieve this? Is there any good tutorials on this? A very good tutorial that is easy to follow and understand: How to wrap C functions to OCaml. A comprehensive reference manual: Chapter 19…
How to Get Available Filesystem Space on Linux: a C Function with a C++ Example
It is common for programs to write to files in filesystems on disks. However, what if the disk was almost full when your program writes to the filesystem on a disk? For systems software and mission critical programs, it is a better or must-to-do practice to check the available filesystem space before actually writing to…
How to set an environment variable in csh?
How to set an environment variable in csh? To set an environment variable in csh: setenv VARIABLE value Most commands used to display/manipulate the environment variables for bash are also available for csh: https://www.systutorials.com/qa/476/how-to-set-an-environment-variable-in-bash Read more: How to set an environment variable in bash? How to get an environment variable in Python? How to get…
Linux Kernel 4.19.178 Release
This post summarizes Linux Kernel new features, bugfixes and changes in Linux 4.19.178 Release. Linux 4.19.178 Release contains 248 changes, patches or new features. In total, there are 239,909 lines of Linux source code changed/added in Linux 4.19.178 release compared to Linux 4.19 release. To view the source code of Linux 4.19.178 kernel release online,…
How to make xterm display Chinese characters?
How to make xterm display Chinese characters? It just displays some small rectangles for Chinese characters. First, the settings for some old X programs like xterm is in ~/.Xresources. And it takes effect after the X server restarts, or you can manually load the settings by xrdb -merge ~/.Xresources Second, the Chinese or similar fonts…
How to force MPlayer to start a video at the center of the screen?
How to force MPlayer to start a video at the center of the screen? I assume you are using Linux. Put this line into your ~/.mplayer/config: geometry=50%:50% Check more options in MPlayer manual. Read more: How to play video in full screen and keep it looping with MPlayer? How to run screen on a Linux…