Sometimes it is useful to give out htpassword protected access to
certain areas of your web server (say if you are developing an app for
someone and want to give them a preview). Here is a simple way to do it
Category: Linux
HowTO – Convert WMA into an MP3
From a linux command prompt, do the following: MyWmaFile.wma is the file you want to convert into an MP3 called MyMP3File.mp3 first rip the wma into a wav file by running this from a terminal window: mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader MyWmaFile.wma && lame -m s -V 3 audiodump.wav -o MyMP3File.mp3 […]
How to tell if Apache2 is running in MPM – Prefork
Apache2 needs to be running in pre-fork mode for certain things like persistant database connections to work correctly # /usr/local/apache2/bin/httpd -V|grep MPMServer MPM: Prefork
Export Oracle 10g into Oracle XE
I couldn’t get the export working through Oracle enterprise manager … so I did it through a shell. (oraclebox is a solaris box with oracle 10g installed) oraclebox# export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1 (set this to ur own oracle home dir)oraclebox# cd $ORACLE_HOME/binoraclebox# ./exp ‘username/password@orcl(follow the prompts – this will create a file called expdat.dmp – copy this […]
Apache displaying ? characters
set the default charset in /etc/apache2/apache2.conf to: AddDefaultCharset ISO-8859-1 usually fixes it
/usr/bin/dpkg received a segmentation fault.
E: Sub-process /usr/bin/dpkg received a segmentation fault. Try: dpkg –clear-availapt-get update Otherwise try a reboot – this happened to me after a virtual server ran out of ram. Reboot fixed it