Monthly Archives: November 2008

AVI to MPEG mass conversion

Need a FFMPEG installed. The following command will convert all *.AVI files into SVCD-format (with MP3 audio) files: find . -iwholename *.avi -exec ffmpeg -target ntsc-svcd -acodec mp3 -y -i ‘{}’ ‘{}.mpg’ \; To see all supported format on FFMPEG: … Continue reading

Posted in Uncategorized | Leave a comment

Using Vector template

#if defined(__cplusplus)#include <cstdio>#include <cstdlib>#include <cstring>#include <iostream>#include <string>#include <vector>#else error “must be CPP-enabled compiler to compile this program”#endifusing namespace std;class CPoint {public: CPoint(double a, double b) { x = a; y = b; }; friend std::ostream& operator<< (std::ostream& os, const CPoint& … Continue reading

Posted in Uncategorized | Leave a comment

Making Linux running SUSE as a Bridge

Make sure bridge module is installed in the Kernel Run the bridge module: sudo modprobe bridge Install bridge-utils (download it from http://bridge.sourceforge.net) and copy brctl into /sbin (the ifup script is hardcoded to call it from /sbin) create a new … Continue reading

Posted in Uncategorized | Leave a comment