Wednesday, December 8, 2010

MSN messenger for Ubuntu and Fedora

MSN messenger or Windows Messenger or Live Messenger's alternative for Ubuntu and Fedora is AMSN messenger. It's available in the following link. Download it and give these two lines command in the terminal.
Download link:
http://sourceforge.net/projects/amsn/files/amsn/0.95/amsn_0.95-3.ubuntu.deb/download
code:
sudo apt-get -f -y install amsn
sudo dpkg -i amsn_0.95-3.ubuntu.deb

Easiest way to install in Fedora
Click on Applications >> Add/Remove Software
Click on Search tab, and search AMSN
Click the checkbox/s for AMSN
Click apply
Done!!
Alternatively, you can do
$yum install amsn

Monday, December 6, 2010

How to install gcc-3.3 in Ubuntu 9.04

Today I tried to install gcc-3.3 in Ubuntu9.04 in my PC. I followed following steps. I found 2 patches to solve the errors in the Internet.
(NOTE: - means delete, and + means add as in Patch file)

1. Download gcc-core3.3.tar.bz2 and gcc-g++-3.3.tar.bz2
2. bzip2 -cd gcc-core3.3.tar.bz2 | tar xvf -
bzip2 -cd gcc-g++-3.3.tar.bz2 | tar xvf -
3. mkdir build
4. cd build
5. /home/xxxx/gcc/gcc-3.3/configure --prefix=/opt/gcc33 --program-suffix=33 --enable-languages=c,c++

6. If there are errors from /usr/include/bits/studio-lock.h file
then comment the /*#include */
- #include
+ /*#include */
7. If there are errors from gcc/gcc-3.3/include/obstack.h file ("/read-rtl.c:653: error: lvalue required as increment operand")
Change line#423 in
gcc/gcc-3.3/include/obstack.h
- *((void **)__o->next_free)++ = ((void *)datum); \
+ *((void **)__o->next_free) = ((void *)datum);
+ __o->next_free += sizeof(void *); \
8. If there are errors from decl.c file
Apply gcc42-patch-gcc-3.3.1_gcc_cp_decl.c patch from ftp.nsysu.edu.tw/FreeBSD/FreeBSD-current/ports/palm/prc-tools/files/gcc42-patch-gcc-3.3.1_gcc_cp_decl.c
9. If there is an error "gcc/collect2.c:1779:/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared"
Then, in the line number 1776 of gcc/collect2.c
- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
10. make
11. Follow http://www.mjmwired.net/resources/mjm-fedora-gcc.html

Few useful commands
:
sudo apt-get install gcc
find /usr/bin |grep gcc
find /usr/bin |grep g++
stat /usr/bin/gcc

$ cd /usr/bin
The default gcc version
$ gcc --v

Delete the old symbolic links
$ sudo rm cpp gcc g++

Change the symbolic links to 3.3: (Find where the gcc33 is installed. In this example we installed in /opt/gcc33/bin (we gave the command while installing gcc as: --prefix=/opt/gcc33).

$sudo ln -s /opt/gcc33/bin/g++33 /usr/bin/g++
$sudo ln -s /opt/gcc33/bin/gcc33 /usr/bin/gcc
$sudo ln -s /opt/gcc33/bin/cpp33 /usr/bin/cpp

Check the default gcc version

$ gcc --v

It should show new gcc version.

Saturday, November 27, 2010

How to install flash player on Opera in Ubuntu?

Easiest way to install flash player on Opera in Ubuntu.

Are you frustrating with your Opera because you cannot play Youtube videos because it ask you to install Flash player, but you can't find/install for Opera?

Here is the simple steps. It's for newbies (as I am).  NOTE: This procedure works only if Flash player is installed for Firefox. 

Step-1: Change to the hidden directory

$cd ~/.opera

Step-2: Open and edit pluginpath.ini file. Add this line at the end of the file and save the file. (Note: CLOSE OPERA WHILE EDITING pluginpath.ini FILE.)

/home/qwerty/.mozilla/plugins=1

Step-3: Open Opera. Now, it works fine.

Tuesday, November 16, 2010

Problem with NS-2

Problem: Makefile:314 *** commands commence before first target. Stop.
Solution: DO NOT use tab or copy/paste spaces from previous line when you add .o in makefile. Use only space.

Monday, September 6, 2010

NS2 installation problem on Cygwin / NS2 installation problem on Windows7

I installed latest version of Cygwin and tried to install and run NS2, but it didn’t work. I check this site and found following information. http://nsnam.isi.edu/nsnam/index.php/Running_Ns_and_Nam_Under_Windows_9x/2000/XP_Using_Cygwin
I tried to search the solution on Google but couldn’t find exact answer. So, I am posting here. This may be useful to you.

The current version of Cygwin 1.7.x breaks some programs, including ns-2. Presently, there is no working version of the ns-allinone-2 series that works with Cygwin 1.7.x

Although, the above site says there is a "legacy" installation that will allow you to install Cygwin 1.5 series and then install ns-allinone-2 package. But, when I tried to install legacy, it didn’t work.

Fortunately, I found old version Cygwin 1.5.x in one of my friends’ computer. Now, it works perfectly.

Suggestion: try to get old version of Cygwin
Command to check version of Cygwin (it’s same as in Unix): uname –srv

Good luck

Wednesday, June 23, 2010

जन्डिस् पिउषभर्षी औषधालय र आयुर्वेदीक औषधालायको औषधी प्रयोग गरेर मात्र ठिक हुन्छ भन्ने भ्रम नपालौ

"जन्डिस निको पार्छु भनेर जडीबुटी भिडाउनेलाई पनि आफूले दिएको औषधिले के गर्छ भन्ने थाहा नहुन सक्छ !!!" -अर्जुन पौडेल

जन्डिसको वारेमा नेपालमा पाईने विभिन्न गलत धारणाहरु चिर्नको लागि यी विशेसज्ञहरुको राय यहाँ संकलन गरिएको छ । जन्डिस रोग होईन र   यो पिउषभर्षी औषधालायको औषधी प्रयोग गरेर वा नरदेवीको आयुर्वेदीक औषधालायमा महिनौ वसेर  मात्र ठिक हुन्छ भन्ने भ्रम नपाल्न सहयोगी हुनेछ भन्ने आशा छ है ।  


Jaundiced? Beware of some myths - SUMINA KARKI

Ayurvedic treatment for jaundice in Nepal - Durkin, Maureen, Columbia University, Sergievsky Center, New York

जन्डिस सम्बन्धी जानाकारी   - डा. सुधांशु केसी (लेखक नर्भिक हस्पिटल, थापाथलीका कलेजो रोग विशेषज्ञ हुन्।)

वर्षायाममा जन्डिस  -  डा. सुधांशु केसी (लेखक नर्भिक हस्पिटल, थापाथलीका कलेजो रोग विशेषज्ञ हुन्।)

हेपाटाइटिस 'ई' र जन्डिस - डा. सुधांशु केसी (लेखक नर्भिक हस्पिटल, थापाथलीका कलेजो रोग विशेषज्ञ हुन्।)

जन्डिस रोग होइन ! -अर्जुन पौडेल

Few other resources: 

What is Jaundice?

http://www.labtestsonline.org/understanding/conditions/jaundice.html

http://www.medicinenet.com/jaundice/symptoms.htm

http://en.wikipedia.org/wiki/Jaundice

Jaundice - yellow skin - Overview

Sunday, June 20, 2010

Magic of good thinking - Khaptad Baba

This is a series of Khaptad Baba's book - Vichar Vigyan. The credit goes to Dr. Praveen Tiwari. His post is here.

Part - 1/4



The summary of the Vichar Vigyan in Nepali can be downloaded from this link.

Part - 2/4



Part - 3/4



Part - 4/4