Archive for June, 2009

Protected: Bringing Time degradation to computation

Posted in Uncategorized on June 27, 2009 by saffrongeek

This content is password protected. To view it please enter your password below:

RMVB Format and Ubuntu

Posted in @home, movie, Technical with tags , , , , , , , on June 20, 2009 by saffrongeek

Playing Real Media File

RMVB format : RMVB is a proprietary format plays mp3, rm, ra, rv, wma, wmv, ogg, aac, and more. RealPlayer for Linux is based on the open source Helix player. RealPlayer supports RealAudio, RealVideo, WMA, WMV, MP3, Ogg Vorbis and Theora, H263, AAC and more. Get ready for accelerated video, full screen playback, and a lot more to enjoy. Download the debian package for ubuntu and install it. This should help you with RMVB formats.

Joomla Backend toolbar in Frontend Form View

Posted in PHP, Technical, work with tags , , , , , on June 19, 2009 by saffrongeek

Did you ever felt to have a frontend form and make use of backend button and styles. Here is a simple way:

Step 1. Create a folder ‘helpers’ in the /adminisrator/components/com_yourcomponent

Step2. Create a file toolbar.php and below is a sample content.

defined(‘_JEXEC’) or die(‘Restricted access’);

class YourcomponentnameHelperToolbar extends JObject
function componentnameToolbar() {
$bar =& new JToolBar( ‘Campaign Toolbar’ );
$bar->appendButton( ‘Standard’, ‘save’, ‘Save’, ‘savecomponentnametask’, false );
$bar->appendButton( ‘Separator’ );
$bar->appendButton( ‘Standard’, ‘cancel’, ‘Cancel’, ‘cancelcomponenttask’, false );
return $bar->render();


Step 3. Frontend mainfile(/component/com_yourcomponentname/yourcomponentname.php) should have below line added first.

require_once( JPATH_COMPONENT_ADMINISTRATOR.DS.’helpers’.DS.’toolbar.php’ );

Step 4.In the view logic, add to the form below codebase

echo YourcomponentnameHelperToolbar::componentnameToolbar();
JHTML::_(‘script’, ‘joomla.javascript.js’, ‘includes/js/’);

// stylesheet from admin template
$document    = & JFactory::getDocument();


Yep! That is it! You have the backend buttons and styling for frontend as well.

Dia for Visio VDX file view : Linux

Posted in @home, Apache, Linux, mysql, PHP, Technical, work with tags , , , , , , , , , , on June 19, 2009 by saffrongeek

Currently, I started working for a Drupal-CRM based project and the client had lots of Visio files. Being a Ubuntu user, I didnt had the application that recognizes the format and got stuck. A bit of googling helped me realize that .vsd formats are propreitary and so nux compatibility appeared less.

Just then I came to know that if Visio is used to export the vsd file as XML file ( VDX format) , I might be able to view them in Linux. Before that let me share what Visio is :> Visio is a popular diagramming Application for Windows Platofrm primarily used to create visual representations of complex data. Visio is a good application but problem is I dont have it.

Dia is a mapping , diagramming tool in Linux platoform which seems to limitedly support VDX formats. Yep, I can view the VDX file but there is no PDF exportation. I am wondering how to get a good print view so that I could take few printouts. Let me see any conversion software.

Good Reference Link :

Over a cup of coffee with Lee

Posted in @home, drama, humor, love, memoirs, society with tags , , , , , , , , on June 18, 2009 by saffrongeek

I and Lee  was out to one of the canteens at the basement of our block. As we waited for our turn at the self service ordering desk we saw a recently married couple , excited and lost in making a show of presence for others in the corner. They were consciously acting lost and so involved with each other. I felt this way. Whatever, we were successful in getting a silent corner to enjoy our T break.

As we settled, I felt Lee murmuring something to himself and I felt interested. After some forcing, he told me his story about how he had been in love with a girl from his college days, how it went nice for 7(!!SEVEN!!) years and when time came, he found his ex-love withdrawing, going silent, often fighting for no reason at all and above all, fault in everything that got him. He was hurt. What hurt him most was that he never knew the reason of her changing her nature, fightin, goin silent until as a surprise he met a common friend of his ex-love, Rakhi at Ernakulam railway station. Rakhi liked him because rarely guys so serious and one life – one girl policy is met in todays world. Lee was one with such a view in life. She got him for a Tea, had some chat, slowly slowly told him actual events.

The thing was his ex-love was from a family settled in middle east and her family had found a guy from a family settled in gulf itself. On a comparison note, she felt that Lee has just started career and not from a financially sound family. Well, the comfort of financial security was what she prefered over Lee.

Lee continued after a pause, “I never would complain of she choosing a life of comfort  because I wanted her to have one with me. But, I myself even now is not sure whether I would have given her all those happiness she might be enjoying now as a wife of a wealthy guy. What hurt me was , she went silent, and any time before the split, she always was searching to fight over a stuff. I would have felt OK, if she could have told me straight and  gifted ME a last meeting to see her and listen to her voice. I still am not able to move life..and I never would be..

As he told me till here, I found his voice weighing, throat need for clearing. He went reserved for a few minutes and I let him have his space. I really felt sorry for Lee but failed to find some words to get him back composed. As I was wondering, suddenly Lee spriinged back with a line >> >> “ Saudi Arabia do not expect their football team to win the world cup once they are out in the field playing. The minimum expectation is to make GOAL.” 😉 I couldn’t get this one-liner double meaning instantly but well.. when I got it I just couldnt help join for a giggle.

Lee , he is one of the best person I have ever met, very friendly, witty and I should say his instant one-liners carry a lot of weight.   love you man. Be in touch buddy.

Eclipse : Workspace in use or cannot be created..

Posted in Linux, PHP, Technical, work with tags , , , , , , on June 17, 2009 by saffrongeek


Sometimes, attempting to open eclipse throws up the below message

[ Workspace in use or cannot be created, choose a different one. ]


Go to Administration->System Monitor and click the process tab.

Find the ‘eclipse’ thread and click the end process button.

Now try again and Eclipse IDE loads.

Freemind in Ubuntu [ Concept mapping ]

Posted in @home, Linux, Technical, work with tags , , , , , , on June 17, 2009 by saffrongeek

To automated installation, use System->Administration->Synaptic Package Manager
Type in filter: ‘freemind’ mark for installation and Apply.

To do it manual:
Download from the following link , the files and follow steps primarily below.

Step #1.
saffrongeek@saffrongeek-laptop:~$ sudo gedit /etc/apt/sources.list
Add below lines to the end and save.
deb dapper main
deb dapper universe
deb dapper multiverse

Step #2.
saffrongeek@saffrongeek-laptop:~$ sudo apt-get install libcommons-lang-java
Reading package lists… Done
Building dependency tree
Reading state information… Done
libcommons-lang-java is already the newest version.
libcommons-lang-java set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.

Step #3.
saffrongeek@saffrongeek-laptop:~$ sudo apt-get install librelaxng-datatype-java

saffrongeek@saffrongeek-laptop:~/Desktop$ sudo dpkg -i libforms-java_1.0.5-2_all.deb

Step #5.
saffrongeek@saffrongeek-laptop:~/Desktop$ sudo dpkg -i freemind_0.8.0-1_all.deb

Step #6.
Test installation :
saffrongeek@saffrongeek-laptop:~/Desktop$ /usr/share/freemind/

It works fine.

Installing plugins:
saffrongeek@saffrongeek-laptop:~/Desktop$ sudo apt-get install rhino libbsf-java
Depends: libjaxp1.2-java
Open Synaptic Package Manager from System -> Administration and type libjaxp. In mine , it listed libjaxp1.3-java. Apply.
saffrongeek@saffrongeek-laptop:~/Desktop$ sudo apt-get install j2re1.4 libjcalendar-java

%d bloggers like this: