Web Development Links
Web Development No Comments »Lorem Ipsum - http://www.lipsum.com/
Color Schemer Online - http://www.colorschemer.com/online/
Lorem Ipsum - http://www.lipsum.com/
Color Schemer Online - http://www.colorschemer.com/online/
To play MP3 files in Fedora 8 with KDE you need to add software to your default installation. This software does not come “stock” with KDE because the software is not free and RedHat is required to filter it — therefore if you download this update make sure you check the licensing agreements:
rpm -ivh http://rpm.livna.org/livna-release-8.rpm
yum install kdemultimedia-extras-nonfree
That is it, next launch Amarok as an example and hello MP3 music!

Q: Hey Chris, why does the kdemultimedia-extras package end in “-nonfree”
A: Good question, tough answer, the kdemultimedia-extras-nonfree package contains plug-ins which cannot be shipped by Red Hat / Fedora because the license is not LGPL. Please note the the license of the entire library is not LGPL! So of course you shouldn’t install it unless you pay the owners for licensing rights.
To play MP3 files in Fedora 8 you need to add software to your default installation:
rpm -ivh http://rpm.livna.org/livna-release-8.rpm
yum install rhythmbox
yum install gstreamer-plugins-ugly
That is it, next launch Rythmbox and hello music!

Q: Hey Chris, why does the gstreamer-plugins end in “-ugly”
A: Good question, tough answer, the GStreamer is a streaming media library which contains plug-ins which cannot be shipped in gstreamer-plugins-good because the license is not LGPL. Please note the the license of the entire library is not LGPL! So of course you shouldn’t install it unless you pay the owners for licensing rights.
I am in the process of building the ultimate ‘vi’ shortcut list:
:g/.*/norm jddIf while using ‘yum’ or ‘rpm’ you receive the following error:
rpmdb: Lock table is out of available locker entries
Your RPM dB files are screwed up… here is how you unscrew them!
Here is how you fix this error:
Here is the command walk through:
cd /root; tar cvzf rpm-backup.tar.gz /var/lib/rpm
rm /var/lib/rpm/__db.00*
rpm --rebuilddb
yum install somepackage
If you ever have to set an environment variable you may run into the same reality I ran into.
A simple call to system using export (as you might do on the command line)…
system( "export MYVAR=somevalue" );
…does not work!
You have to use the Perl ENV hash variable:
$ENV{'MYVAR'} = "somevalue";
Changes to $ENV{’SOMEVAR’} will be available to the current process and children processes only. Thus, if you change an environment variable for an upcoming system() call the process started due to the system() call will see the environment variable change.
Here is an example:
.
.
.
$ENV{'http_proxy'} = "192.168.0.10";
system( "wget --tries=2 --timeout=8 $url" );
.
.
.
Another task which hits my desk often is getting “data” out of text files. Such as names, email addresses, phone numbers, ID numbers, etc. Here is a quick way to parse or rip out “data” from a text file.
I suggest using ‘grep’ — grep is one of those applications which is more powerful than the casual user realizes. And let’s face it, if you use or know what grep is you probably do not consider yourself a casual user.
grep -o -P "[regex_pattern]" [filename]
The -o tells grep to only output what it matched in your pattern where your [regex_pattern] is your pattern.
The -P tells grep to use Perl Regular Expressions
To play MP3 files in Fedora 7 you need to add software to your default installation:
rpm -ivh http://rpm.livna.org/livna-release-6.rpm
yum install rhythmbox
yum install gstreamer-plugins-ugly
That is it, next launch Rythmbox and hello music!

Q: Hey Chris, why does the gstreamer-plugins end in “-ugly”
A: Good question, tough answer, the GStreamer is a streaming media library which contains plug-ins which cannot be shipped in gstreamer-plugins-good because the license is not LGPL. Please note the the license of the entire library is not LGPL! So of course you shouldn’t install it unless you pay the owners for licensing rights.
If you make a new entry in fstab it will not auto-mount. Therefore you must reload / refresh the entries. A reboot will do this but that is not a friendly way to do it. A quick way to reload new entries in /etc/fstab (fstab) is to use the mount command:
mount -a

I use the “HTML Validator” Firefox plugin daily. I found it does not work out of the box in Linux namely Fedora Core 6 and Fedora 7. You immediately get a HTML-rendered screen that states:
FATAL ERROR : The dynamic C library contained in the extension file could not be found
Getting rid of this message took me a few minutes of research and I never found a step-by-step HOW-TO for Fedora — so here goes!
Here is how you get rid of this message and get the plugin working in Fedora Core 6 or Fedora 7:

linux> yum install compat-libstdc++-296 compat-libstdc++-33 tidy
HTML Validator should now be installed inside of Firefox on Fedora Core 6 or Fedora 7
Recent Comments