Compiz Fusion on FC6

A few days back while i was surfing the net, i happened to found a site saying that beryl, the exotic eye candy for Linux distros, will no longer be developed but be supported. instead, Compiz and Beryl have been re-merged and taken the name Compiz Fusion .

Compiz Fusion

Since then i was a bit curious about the outcome of the decision. Because even though Beryl is more eye-soothing but there is still something for Compiz to contribute in creating a more lucrative Linux desktop. My guess is somehow correct. Recently Compiz Fusion 0.5.2 has been released with some stunning effects that we have never seen before. i googled for binary package for FC6. but unfortunately i found nothing. Binary distributions i have found so far, are all for FC7, Ubuntu, SUSE etc. in spite of that, i have found some binaries of Compiz Fusion working smoothly on FC6. These RPM files can be downloaded from the following link:

I have just downloaded all the RPM files from here(You don’t need to download devel or debug files if you are not doing development work with compiz fusion) and installed them all. Then I started Compiz Fusion by going to start menu->system->Compiz Fusion Icon and the effects are ready to be served.

I have found Compiz Fusion working very smoothly in both KDE and GNOME using these RPMs.


changing mac address in linux/fedora

lately i have shifted to new location so is my machine. new location new net connection but the configuration process was different. previously I used connection with static IP but this time i have got to use dynamic IP assigned by DHCP. DHCP server identifies my PC using my MAC address. Up to this point I was fine but the problem was I could not use the physical address of my NIC rather I have to use the one provided by the connection provider. So i had to change the MAC address and this was the problem as I did not know how to change the MAC address in Linux. The technician come along, advised me that i would not be able to use this connection in Linux platform. This sounded real ridiculous. After doing little googling and skimming through ref book, I found the solution. The solution is not that difficult.

use ifconfig utility:

MAC address can be changed very easily using ifconfig.Before issuing command, be root user.Then issue the following command on the terminal:

#/sbin/ifconfig eth0 down hw ether address

here it is assumed that ifconfig is in the /sbin directory.

eth0 is the name of the interface/NIC which address is to be changed.

down means the NIC is to be shutdown before changing address.

hw ether means hardware address class is ether(which indicates ethernet).

address is the address which will used as the new mac.

After the successful execution of the command. start the NIC again using the command:

#/sbin/ifconfig eth0 up

and that is all I needed.

play with pointer

my user-defined data data type is as follows:

struct list {
char ar[10];
struct list * next;

then i have done the following:

void insert(struct list * p, char * n){
struct list * tmp =(struct list*)malloc(sizeof(struct list));
tmp->next =NULL;
p = tmp;

p = p->next;
p->next = tmp;

int main(){
struct list * link = NULL;
char  ar[10];
return 0;

will this work? nope

two workarounds:

//method 1
void insert(struct list **p, char *n){
struct list *tmp = (struct list *)malloc(sizeof(struct list));
struct list * t =NULL;
tmp->next =NULL;
*p = tmp;
t = *p;
t =t->next;
t->next = tmp;

int main(){
struct list * link =NULL;
struct list * t = NULL;
int i = 0;
char ar[10];
printf(“get text:\n”);
printf(“put text:\n”);
return 0;

// method 2
struct list * insert(struct list  * p, char * n){
struct list *tmp = NULL;
struct list *head;
p = (struct list*)malloc(sizeof(struct list));
p->next =NULL;
return p;
head = p;
tmp =(struct list*)malloc(sizeof(struct list));
tmp->next =NULL;
p = p->next;

p->next = tmp;
return head;

int main(){
struct list * link =NULL;
struct list * t =NULL;
char ar[10];
int i =0;
printf(“get text:\n”);
link = insert(link,ar);

printf(“print text:\n”);
for(t = link;t!=NULL;t = t->next)

return 0;

GoodLuck tigers!

once again Bangladesh cricket team is facing India tomorrow. this time tigers are playing in their home ground. 17th march is not that far yet in the time scale. Even though I want my memory be refreshed.yes tigers we want another win. we know you can do this. you have that spree. just show indians how good you are in this business. make them say that they have made mistake by not inviting for an away tour. you have nothing to loose. just bring out the best of you. Good luck and lets get the saga going. see you in the field.

i have to ask ……

former army officers have been almost central characters in the political history of bangladesh over the past 36 years as is seen in the third world country like us. we have seen scores top level politicians have been put behind the bar after this army-backed CTG took the office. this is okay because they had to get reward of what they have done.but can someone pleas tell me why there is not even a single former army officer in this gang of notorious and corrupt.what this imply is that all our army officers are very honest, loyal and selfless.ok thats fine.then why are there so many blood-stained black spots in our past 36 years’ history? it is not that difficult to see that this spots are cruelly and heinously drawn by the heartless blood thirsty beasts coming from the cantonment. now our army chief says politicians only did bad things for this country (and what he might want to imply by saying that is whatever good things are done is done by the army! what a joke!!). how can i forget that we were forced to bring ’90 because of an army officer(unfortunately he was also an army chief once). noor hossain, dr. milon to name a few, had to sacrifice themselves because of an army officer. politicalisation of educational institution is introduced by an army officer and now we are facing the consequence by bearing session congestion of almost 2 years. the list is much longer. but no army officer is taken guilty for causing this. one mohiuddin has been arrested in the USA which we have read in the dailies. we started to believe that he would be brought back to BD and taken to justice. but that hope is already fainted.newpapers have already stopped giving any news update on that matter. really how can a former army officer be taken to trial when army is running the government? actually nothing will change. nizami will keep going to savar and lay flower on every 26 march and 16 december and a helpless freedom fighter will keep staring at that releasing a big sigh looking upwards. his age old heart may pump faster. he may feel sick but no one will notice.

installing beryl, watching listening mp3 and more in fedora 6

some users allege that fedora users are beta testers for RedHat. but to me, it is a never-possible-before way of experiencing the cutting edge technology in this arena. fedora is comparatively stable and does not cause that severe problem to the users though RedHat do not provide any on-demand service for it. another allegation was about the lack of user friendly GUI tools to manage the system. it is good to see that linux variant of operating systems are getting more and more user friendly day by day. i am not a linux expert. but many a time i was asked by my friends how to play this, how to play that and bla bla bla.this time i am going to hint out some of the easiest how tos. unfortunately if internet connection is not available, this is of no use.

installing beryl:

beryl is a tool for experiencing eye candy in linux. it provides much more options than mac or vista. beryl depends on the 3d performance of the graphics hardware. but unfortunately open source graphics hardware driver cannot provide 3d support at this moment(though it will be available in a short time. its code name is ‘nouveau’). so we have to use nvidia or ati provided graphics driver. so fire up terminal and write:

#>yum install kmod-nvidia // for nvidia

#> yum install yum install xorg-x11-drv-fglrx kmod-fglrx glx-utils // for ati

wait for installation to finish. after completion write:

#> yum install beryl

after completion write the following in terminal to enable beryl:

#> beryl-manager

thats it and see what u r upto.

playing mp3, wma:

there are numerous mp3 players for linux but i prefer audacious. to install it issue the following command in the konsole:

#>yum install audacious audacious-plugins-nonfree-mp3 audacious-plugins-nonfree-wma

playing video and dvd disc:

looks like no one is better than vlc. so let it be. open the terminal and say:

#> yum install vlc

and it is done.

what i am ….

while surfing the net i found blogthings. even though i just checked all the questions available to get the worst possible answer(!!), you should do it as to really  justify yourself if you believe in this procedure.

Your Five Factor Personality Profile

You have low extroversion.
You are quiet and reserved in most social situations.
A low key, laid back lifestyle is important to you.
You tend to bond slowly, over time, with one or two people.


You have low conscientiousness.
Impulsive and off the wall, you don’t take life too seriously.
Unfortunately, you sometimes end up regretting your snap decisions.
Overall, you tend to lack focus, and it’s difficult for you to get important things done.


You have low agreeableness.
Your self interest comes first, and others come later, if at all.
In general, you feel that people are not to be trusted.
And you’re skeptical that anyone else really feels differently.


You have low neuroticism.
You are very emotionally stable and mentally together.
Only the greatest setbacks upset you, and you bounce back quickly.
Overall, you are typically calm and relaxed – making others feel secure.

Openness to experience:

Your openness to new experiences is low.
You’re a pretty conservative person, and you favor what’s socially acceptable.
You think that change for novelty’s sake is a very bad idea.
While some may see this as boring, many see you as dependable and wise.

The Five Factor Personality Test

problem with java swing application in beryl

inclusion of beryl in fedora core is really something that deserves admiration. it has added cool eye-soothing effects in desktop. it caught me not only because its effects but also it does not impose high hardware requirement like vista. but soon i got stuck when i tried to run java swing apps. because it showed only empty white window when i started java application. the reason was not so apparent in the first place. after googling for a while, i got the reason. and it had nothing to do with beryl rather the problem was associated with the java vm. i found bunch of workarounds. but the best one to me was using nested x server ‘Xnest’. i was not satisfied with this one though. hell of lengthy sequence of steps were associated with it. recently another solution was posted in the beryl-wiki. the whole process is nicely explained there. as long as the jdk6/jre6 is not visible in the arena, this workaround is most probably the best way to keep things nice and fine.

bravo tiger! go ahead


whoos ouch india he he ho ho India!! yes it is really painful to endure such a pathetic defamation of the demigods. a team with so many superstars, so much endorsements, so 24/7 media coverage have been put beneath the surface. gods are thrown away from heaven and burnt on the streets of India. the whole world knew beforehand who the tigers were but this time they have got to watch their deeds, their agility. for the last couple of days pepsi indian tv channels were showing commercial epitomizing indian players as tigers. oh what a joke it was. some silly cats in the guise of tiger. how can this be? gear up guyz, stand high with your own identity. dont hijack others. bangladesh got test status in 2001, in this long stint of time, bangladesh played home & away series with all the test playing team except our lively neighbor india. even giant australia did not refuse to invite bangladesh for a series. b’cause indian management dont have to invite bangladesh. dear india have u got enough time to invite now? sorry mandira bedi for coloring your face so pale. actually we did not want it to but what we wanted is to make you face the truth and teach the same old but meaningful lesson that never hail attitude of negligence inside. please keep some place for bangla tigers in your tv promos and clips, ok.

search result highlighting in php

searching in an article for a particular group of words and if found, highlighting the search criteria in the result is really cool. we have seen this in google and many other search engines crawling in the internet. doing texthighlighting in php is fun and easy. i going to describe a little about that.

suppose we are going to search for ‘fineagain’. suppose we have defined a style named ‘search’ in css which is different from the style used in the article. we will be displaying search criteria in the result in this style.

let us define some variables according to our need.

$body = is the whole article in which we have found our criteria.

$criteria =’fineagain’;

$startingTag = “<span class=’search’>”;

$endingTag = “</span>”;

$highlightedText = $startingTag . $criteria . $endingTag;

the variable $criteria and $hightedText are same but with different style. we whenever we find $criteria, we replace it with $highlightedText. this will show the search criteria differently in the result.

to replace the $criteria with $highlightedText, we use php library function ‘eregi_replace’.

the defination of the function is:

string eregi_replace(string pattern, string replacement, string textBody);

here pattern is the string we are searching for.

replacement is the string we will use in place of pattern.

textBody is the whole article in which we found our search criteria.

so we will call the function is the following way:

$body = eregi_replace($criteria,$highlightedText,$body);

thats all. now $body contains the same article but the search criteria is highlighted.

this article shows only a single word criterion but it can be extended to multiple word criteria. we can also change highlighting dynamically with utilization of a little prudence.

« Older entries