A Code Monkey's Blog

Convert ogv to flv in Linux

I use recordMyDesktop to grab the screen movie but its default format is in ogv. If you want to convert to Flash format locally you can use the following command. Feel free to add it in your bashrc. If I recall correctly, this method can produce the best conversion in ...

Using OpenMP with CMake

Add the following lines into your CMakeLists.txt

# Even though -fopenmp won't appear in the GUI options, it does take effect
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")

Install lighttpd as a service in Cygwin

cygrunsrv --install lighttpd --path /usr/sbin/lighttpd
    --args "-D -f /etc/lighttpd/lighttpd.conf" --disp "CYGWIN lighttpd"

See more http://www.cygwin.com/ml/cygwin-apps/2004-09/msg00115.html