Featured Posts

Installing MathabxInstalling Mathabx Mathabx is an important symbol library for latex. The full list of available symbols in latex can be found here. Following steps will help one to install mathabx in ...

Readmore

cronScheduled Tasks using cron Learn how to schedule tasks using cron in Linux!

Readmore

Joomla!Getting started with Joomla! Joomla! is a great open source tool for making great websites with very little effort and absolutely no cost ...

Readmore

Rss

Starting enumerate with a specified number in Latex

3

Posted by Arsh | Labels: Latex | Posted on Tuesday, November 25, 2008

If you want to start your enumerate with a specified number but 1, you should use \newcounter tag. The following example illustrates the use of the tag if, for example, we need to start our enumeration from 6 and not 1:

\begin{enumerate}
\setcounter{enumi}{5}
\item Hello
\item Bye
\end{enumerate}

TRICK TO GET FONTS CORRECT IN FEDORA 9

0

Posted by Arsh | Labels: Fedora, Font Problems, Mathematica | Posted on Tuesday, November 18, 2008

Install libQtCore and libQtGui first. Then,

On a 32-bit machine

rm -f /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtCore.so.4

rm -f /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtGui.so.4

ln -s /usr/lib/libQtCore.so.4 /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtCore.so.4

ln -s /usr/lib/libQtGui.so.4 /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtGui.so.4

On a 64-bit machine,

rm -f /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtCore.so.4

rm -f /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtGui.so.4

ln -s /usr/lib64/libQtCore.so.4 /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtCore.so.4

ln -s /usr/lib64/libQtGui.so.4 /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Libraries/Linux/libQtGui.so.4

Mathematica : Segmentation fault while starting

0

Posted by Arsh | Labels: Fedora, Linux, Mathematica | Posted on

If you have just started using mathematica on Fedora x (> 4) and the first time you run it from the terminal and it crashes giving segmentation fault at the end, here is what you need to do. The problem arises because the location of Xlib folders are changed from what it was in previous versions.
  • Login as root
  • Make sure that libX11 is installed,
    rpm -q libX11

    If some version is installed, then proceed
    else install it
  • mkdir /usr/X11R6/
    mkdir /usr/X11R6/lib/
    mkdir /usr/X11R6/lib/X11/
    cd /usr/X11R6/lib/X11/
    ln -s /usr/share/X11/XKeysymDB XKeysymDB
    ln -s /usr/share/X11/locale/ locale
Things should be fine now!

Skype : Problem with Audio Playback

2

Posted by Arsh | Labels: Fedora, Linux, Skype | Posted on

If you are getting the message "Problem with Audio Playback" while trying to make call with skype 2.0 on Linux, then you need to do the needful.

Go to - Options (By pressing Ctrl+O or by clicking Skype symbol on the bottom left and then clicking Options)

Then go to Sound devices and change Sound In and Sound options to pulse instead of Default device. Say apply and then close.

Things should be fine !

Getting Started with Joomla! 1.5 on Fedora 9

0

Posted by Arsh | Labels: Content Management Systems, Fedora, Joomla | Posted on Sunday, November 16, 2008

Joomla! is a great open source tool for making great websites with very little effort and absolutely no cost !

I wanted to host a website on my computer and I was really impressed with the features offered by Joomla! I found it to be a pain in the neck to install it on my Fedora 9 desktop though. So, I thought of writing a beginner's review of how to install Joomla! on a linux machine. The key steps in the installation are

1) Login as root

$ su -

2) Installing Apache server, MySQL server and php

$ yum -y install mysql mysql-libs php-mysql mysql-server php-cli php-common php-pdo php-mysql php-ldap httpd php

3) Configuring Apache server

Add following lines to /etc/httpd/conf/httpd.conf

#**********************************************
ServerName SERVERNAME
NameVirtualHost IP_ADDRESS


DocumentRoot PATH



DocumentRoot PATH
ServerName SERVERNAME

#**********************************************

Replace the bold entries with the appropriate values.

4) Starting Apache and MySQL services

$ service httpd start
$ service mysqld start

5) Make sure to configure firewall to allow http connections to your computer

$ system-config-firewall &
Check the WWW(HTTP) 80/TCP box

6) Joomla Installation

$ mkdir /home/www/
$ cd /home/www/
$ mkdir Joomla
$ cd Joomla
$ untar Joomla 1.5
$ chmod -R 755 /home/www/

Making configuration.php writable
$ touch configuration.php
$ chmod 777 configuration.php

Open firefox (or any other web browser) and type
http://IP_ADDRESS/Joomla/

Complete Installation following page 8 of Joomla! v 1.5 Quick Start Guide written by Kevin Hayne.

$ rm -rf installation/

Extracting Audio from Video Files

1

Posted by Arsh | Labels: Audio Video Manipulation, Linux | Posted on Thursday, November 13, 2008

Using Mplayer (Low Quality)
mplayer -dumpaudio video_file -dumpfile audio_file.mp3

To extract audio from live stream, use -dumpstream option instead of -dumpaudio option.

Using ffmpeg (Quality Control)

ffmpeg -i video_file -ab 128 -ar 44100 audio_file.mp3

No change in command structure for ffmpeg to extract from live stream.