Monday 12 October 2009

Decreasing heat


It was another evening in Suwon. After day long work in lab, i had spare time with me for a while so i decided to go swimming next to world cup stadium. I prefer swimming not only for fitness but i enjoy it too. Sauna and jacuzzi are another fun part after swimming. This picture was taken from the overhead bridge in front of Suwon worldcup footbaal stadium. The gate seen in the picture leads me to world cup stadium.The evening sun was seen beyond from the gate.Sun in the horizon was hiding and the temperature was decreasing. Sometimes nature changes its appearance for us to realize that we are bound to it. I feel like nature is saying to me " Hey Ananta, do not forget me".

Monday 7 September 2009

Fixing NAM bug

I am using ns-2.31 on Ubuntu and had this error message when i tried to run NAM
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."



I found two patches to solve this problem from http://bugs.gentoo.org/show_bug.cgi?id=225999

i made correction to both files as

--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
@@ -635,17 +635,15 @@
  *
  *---------------------------------------------------------------------------
  */
-#define VirtualEvent     (LASTEvent)
-#define ActivateNotify     (LASTEvent + 1)
-#define DeactivateNotify    (LASTEvent + 2)
-#define MouseWheelEvent     (LASTEvent + 3)
-#define TK_LASTEVENT     (LASTEvent + 4)
+#define VirtualEvent     (MappingNotify + 1)
+#define ActivateNotify     (MappingNotify + 2)
+#define DeactivateNotify    (MappingNotify + 3)
+#define MouseWheelEvent     (MappingNotify + 4)
+#define TK_LASTEVENT     (MappingNotify + 5)
 
 #define MouseWheelMask     (1L << 28)
-
 #define ActivateMask     (1L << 29)
 #define VirtualEventMask    (1L << 30)
-#define TK_LASTEVENT     (LASTEvent + 4)
 
 
 /*
And for other one as
 
--- tk8.4.18-orig/generic/tkBind.c 2006-07-21 08:26:54.000000000 +0200
+++ tk8.4.18/generic/tkBind.c 2008-07-05 12:17:10.000000000 +0200
@@ -586,6 +586,9 @@
    /* ColormapNotify */  COLORMAP,
    /* ClientMessage */  0,
    /* MappingNotify */  0,
+#ifdef GenericEvent
+   /* GenericEvent */          0,
+#endif 
    /* VirtualEvent */  VIRTUAL,
    /* Activate */  ACTIVATE,     
    /* Deactivate */  ACTIVATE,
 
finally it worked. Thank god. i can sleep now.  

Installing NS2.31 on Ubuntu

Now i am validating ns2 and since it takes lot of time to complete it i thought why not write about what i just did to install NS2.31.

From the begining, steps i have taken:

I downloaded Ubuntu 9.04 Desktop edition and burned it on a cd. Then i installed it from windows. It has been made so easy that you can install Ubuntu like any other software in windows. After installation you have to boot computer and you will get a prompt to choose OS, if you have dual OS. Boot it from Ubuntu and its done so easy. Then you have to configure network. It is required to install required packages for NS.

Then since i have been working on NS-2.31. I mounted windows drive and  i copied ns-allinone-2.31.tar to my /home/ananta folder.

Now you are need to install and upgrade your system in order to install NS. Do following steps. Open terminal and type following line.

$ sudo apt-get install build-essential autoconf automake libxmu-dev

prompt will ask you to install dependent files and upgrade your system. please do  whatever you are asked to do. it will take some time depending upon your internet speed. Remember you have to restart after upgrading your system.

Then,
$ tar -xzvf ns-allinone-2.31.tar.gz
$cd ns-allinone-2.31

Then before installation of NS2.31 if you want to use NAM then you will also have to fix a bug. Yes a bug, i searched ofcourse its not mine, but i have written solution in next blog find it, fix it and then only install it.

$./install

Now you have to update Environmental Variables
$ gedit ~/.bashrc



Add the following lines and do replace “/home/ananta/” by something like “/home/yourname/”
——————————————————————————————–
# LD_LIBRARY_PATH
OTCL_LIB=/home/ananta/ns-allinone-2.31/otcl-1.13
NS2_LIB=/home/ananta/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_
LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/ananta/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/ananta/ns-allinone-2.31/bin:/home/ananta/
ns-allinone-2.31/tcl8.4.14/unix:/home/ananta/ns-allinone-2.31/tk8.4.14/unix
NS=/home/ananta/ns-allinone-2.31/ns-2.31/
NAM=/home/ananta/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
————————–
and since you have changed environmental variables they arent active yet so you need to either restart your computer or
$ source ~/.bashrc
 to check whether you have successfully installed ns
type ns and you should see "% " you can type exit to return back.
$ns
%


Then you have to validate your installation
$ cd ns-2.31
$ ./validate


still now my validation is going on......

Tuesday 1 September 2009

Khangwando beach

It was a nice and pleasant evening. The sun  had already taken its path below the terrestrial line. The crowd we had seen in the afternoon was already gone. My personal plans were to see every interval of time in the beach. I wanted to see the morning, afternoon, evening and the night. Since we were in the group we couldn't make it to the morning view. I wonder how would it look like in the morning. I have heard several times that sun rises from the Japan and we were in the beach where Japan and Korea share same sea. But unfortunately not in the morning. Anyways the evening was also wonderful. I sat there near the water on my solitude, watching the evening tide and thinking what ever comes in the mind. The picture definitely shows the condition or the requirement that you need to be alone to engulf the nature. You wouldn't want to leave that place and in particularly this moment that i had captured in the picture.

Sunday 30 August 2009

Linguistic Fight

These days people back in my country are fighting for their language recognization. People are protesting for their own dialect to be recognised. I heard there are more than 90 dialects in our country and some may have already extinguished and some are about too. Preserving one's languge is understandable. That shows their history and that is their identiy. But bring them as official languge is wht i am unsatified with. Currently we have Nepali as official language. It is said that Nepali languge is originally known as Khas Bhasa, the language spoken by Bramin and Chettris. Which is i guess most widely spoken in Nepal and majority of people understand and speak. But i dont know why people are dying to make their own language to be used as official languge.

This is 21 century and we people need to be Global. English is recognised as global language and we need to adopt it. Even i suggest it to be used as only one official language in Nepal. Every individual need to know this languge. Currently Engish is used as second official language. Anyways that is even a satisfactory step for current situation of Nepal. Well i cannot ameliorate people's thinking but what i can do is start improving my own language proficiency.

Saturday 25 July 2009

Understanding other

Well why do we have to have discussions? Is it because one of us is wrong. Are we fighting between truth and false? Do we intentionally take the wrong side and want to prove that, is it like a debate? one always have to take the opposition. Generally as far as i guess we don't think that we are taking wrong side and discussing. Its not about the right and wrong. If i would know i am on wrong side i wouldn't discuss with that. i would simply accept that i have taken wrong. But its not that one of us are wrong and one of us are right in the discussion. We all have our supporting things. But still both of us cant come to conclusion.

Its just our view angle. Both the party see through different angle wanted to prove through that angle and would want other to accept him. Both are seeing the same thing but from the different aspect. And most importantly discussion is upon what matters us most. We see things differently and we take some as serious matter to us and some doesn't have any importance. Its the depth how much we are sensitive to things that comes on our way. One cares lot about every minute things and other only see those things that are big enough to hit the target. Or both care about the different things than one another. No two people have same thinking or the threshold to bear things. Discussion are always happening anywhere and it obvious i guess. We don't have to ruin our relations if we have different views. We will always see things differently. And there is nothing to worry about it at all. You do have to worry about your responsibility and the job you do. Just go through your own philosophy.

Saturday 27 June 2009

Installing Driver

I always find trouble shooting a computer as a challange for me. Specially if there is some non hardware problem i wanted to work for it untill i solve it. Today the problem was to install the audio driver. The system doesnt have any written specifications. Browsed for some free tools like Everst, Hardware Scanner and some other i dont even remember their name, by which you can imagine how many tools i used to find the correct name. But finnally i found Sisoftware Sandra lite which didnt gave me the name of the audio hardware but i dig it out, confused let me explain. After i install this kit, i wanted to see audio device specification but funniest thing is the button which displays audio specs was disabled because i havent installed the driver. Then i went through the main board specs there i found audio device model as C3DX never heard of it. It belongs to C media Electronic. Thank god finally i made it.

Wednesday 10 June 2009

First Blog in 5 minutes

Just said goodnight to one of my korean lab mate. Goodnight was the last word i have spoken before writing "Just" in here. Before that i was thinking about what should i write in my first blog. while thinking for a minute Arun dai pinged and i asked for coffee as there wasnt anything in my mind to write. With empty mind i thought if i drink coffee i would get some idea. But meantime arun dai said wait for 5 mins. what would i say i had no other choice to say except okie. Then now i think i have used 5 mins already or arun dai may have come early i am going now to drink coffee. Good bye to first blog.