visual treat


Copy of IMG_22231, originally uploaded by gdatuk2k.

A good capture by Giri

Same Hot-Key (F) for two fields in Evolution



Bug!

Install Java Plugin for Firefox in Linux

Browser: Firefox 1.0.4
Distro: Fedora Core 4.
Need to Install Java Plugin.
- Download J2SE 1.5.0
- Install the RPM.
- Open a terminal and change to the Firefox plugin directory and symlink it the jre plugin just installed.

cd /usr/lib/firefox-1.0.4/plugins/
ln -s /usr/java/jdk1.5.0_04/jre/plugin/i386/ns7/libjavaplugin_oji.so

Help available at FireFox FAQ points to ns7-gcc29; linking to it Crashed my FireFox. So you need to link it to the correct plugin.
Faced problems like, only the root mode firefox displayed applets, but I tried again with uninstall and install and taking some care to be as user and then su to symlink and luckily the Java Plugin is installed for my FireFox!

Flash Player Installation for FireFox on Linux

Automatic Installation of Flash Plugin Failed.
After checking that Macromedia Flash was missing, giving the option to install,License Agreement etc.when proceeded to install. It failed and informed me to do a manual install.
- Flash Plugin can be downloaded here.
- extract and run the flashplayer-installer.
- it will ask:

Please enter the installation path of the Mozilla, Netscape,
or Opera browser (i.e., /usr/lib/mozilla):

Giving anything other than your Installed Browser's lib directory will fail.
Here,after googling and checking few forums, I did locate firefox | grep lib and got the answer as /usr/lib/firefox-1.0.4/. Yeah, Firefox
lib directory is at /usr/lib/firefox-X.X.X where X.X.X is the version number and plugin directory is present inside this.
-Verify your flash-plugin installation by checking this.
Note: I did not have to close my firefox browser when I installed the plugin.

Hollywood at its Best




Warne has survivied and excelled under conditions which are very different and not so normal.
Read the Nirmal Shekar's article here.

Troubleshooting X server resolution problem in Linux

X was in a very bad shape after I followed the workaround for the problem in FC4. Only 600X800 resolution was available. tried many things(Xorg -configure,system-config-display..etc),upto the downloading a new X11 and not knowing what to do. Finally went to the 600x800 mode only went to display resolutions and saw that video card is incorrectly indentified. Changed it to Intel 815e and restarted X. Now its working. I was thinking of reinstall FC4 to FC3 itself for this. :(

Library installation in linux

Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.



Most of time, I have been adding the path to the /etc/ld.so.conf and doing ldconfig. Need to understand the other options.

Re: Assignment for July 19

Senthil wrote :
> Write a Linked List Program in C and C++.
> Single Linked List only.
>
/* Linked List program. A very simple one to understand the basics */

#include<stdio.h>
#include<stdlib.h>

struct node {
int data;
struct node* next;
};

int main(int argc,char **argv)
{

struct node* head=NULL;
struct node* second=NULL;
struct node* third=NULL;

head=malloc(sizeof(struct node));
second=malloc(sizeof(struct node));
third=malloc(sizeof(struct node));

head->data=1;
head->next=second;

second->data=2;
second->next=third;
third->data=3;
third->next=NULL;

return 0;

}

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

/* Linked List Program in C Plus Plus */
#include<iostream>
using namespace std;

class list
{
private:
struct node {
int data;
struct node *next;
};
struct node *head,*first,*second;
public:
list();
~list();
void addnode();
};

list::list()
{
head=NULL;
first=NULL;
second=NULL;
}

list::~list()
{
while(head != NULL)
{
node *temp;
temp=head;
head=head->next;
delete temp;
}
}

void list::addnode()
{
head=(node *)malloc(sizeof(struct node));
first=(node *)malloc(sizeof(struct node));
second=(node *)malloc(sizeof(struct node));

head->data=1;
head->next=first;

first->data=2;
first->next=second;

second->data=3;
second->next=NULL;
}

int main(int argc,char **argv)
{

list listobj;
listobj.addnode();
}

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Observations:
- Struct node * head,first,second; does not serve the purpose. Either
they should as in the first program or as in the second program
- Allocation of memory, the first program accepted without typecasting
to (node *) whereas the second cpp program did not.

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Unix Blog

http://unixblog.port5.com/
where I plan to put my unix learnings while working from home. Coz, I need to do ftp/rsync from the shell where the local unixblog folder will be present.

Its powered by Nanoblogger.
If you have a Unix Machine online, give it a try.