Monthly Archives: December 2008

User Timer in Linux/Unix

#include <sys/time.h > #include <signal.h >#include <stdlib.h >#include <stdio.h >#define MAX_COUNT 100/* This flag controls termination of the main loop. */volatile sig_atomic_t counter = 0;/* The signal handler just clears the flag and re-enables itself. */voidcatch_alarm (int sig){ counter++; signal … Continue reading

Posted in Uncategorized | Leave a comment

Creative XtremeGamer on Linux is Ready

The XFi driver is now available from Creative website. It’s the first version (I think it is the first collaboration result between CreativeLabs and ALSA community). Although it supports very limited (very basic features: 2.0 speakers, no enhanced audio processing … Continue reading

Posted in Uncategorized | Leave a comment

Make a sound card as default in Linux

In the case that we have more than one sound-card, but to select one of them as the default sound-card, copy the following to ~/.asoundrc. In the example below, it makes the card 1 as the default (type “aplay -l” … Continue reading

Posted in Uncategorized | Leave a comment

OS-X Bootcamp Missing or Corrupt Issue

I got my OS-X Leopard 10.5 a few days ago. After OSX installation, I went to Preference->Utilities->Boot Camp Assistant and then configured it. After reboot and installed the Windows XP, when my MacBook rebooted, it always failed and showed a … Continue reading

Posted in Uncategorized | Leave a comment