31.12.11

Welcome 2012!!

To all my friends and family, I wish you happiness and prosperity this new year, twenty twelve. May all your wishes come true.

15.12.11

Our beloved nini!!

Our beloved nini.. we gonna have you living in our memories forever!!! 

6.10.11

RIP Jobs

Man who patented mouse and connected unforeseen dots, who saw things and realized many that it is possible to see the world in different dimension. Rest in peace Jobs, you will live in memory of generations to come.  

16.9.11

Installing ns-2.1a

Several sites while installing old ns version gives suggestion to install older version of gcc which is tricky in itself. Approached by my friend, I tried doing the same in several platforms which eventually failed to do anything good about it. Instead of going back on gcc version, it is much easier to modify ns code to fit in version 4 of gcc, only thing required is fix some portions of diffusion based routing schemes. This is the step I followed from scratch.

Some basic issues:
1. Samsung Sens X360 would not let me install dual boot ubuntu for some unknown reason. Yet to find solution for this. Interestingly it even converted the boot sequence that I saved in the BIOS setting.
2. My friend did several trials on cygwin based linux environment. Running simulation is very slow
3. Third attempt I chose vmware and install ubuntu over it.

For a freshly installed ubuntu ensure few libraries are installed:
sudo apt-get install libxt-dev
sudo apt-get install libx11-dev

Otcl compilation error (From  wiki)

 otcl.o: In function `OTclDispatch':
 /home/ns/ns-allinone-2.34/otcl/otcl.c:495: undefined reference to `__stack_chk_fail_local'



This error is because the linker being used is "ld -shared" instead of "gcc -shared". If you edit one line in otcl-1.13/configure, and rerun install, it should work:
 --- configure.orig      2009-11-02 12:14:52.556167945 -0800
 +++ configure   2009-11-02 12:17:28.966706099 -0800
 @@ -6301,7 +6301,7 @@
          ;;
      Linux*)
          SHLIB_CFLAGS="-fpic"
 -        SHLIB_LD="ld -shared"
 +        SHLIB_LD="gcc -shared"
          SHLIB_SUFFIX=".so"
          DL_LIBS="-ldl"
          SHLD_FLAGS=""


Follow the rest of errors handling in sunreset blog

For Error on red.cc
==> Follow the discussion on const char* to char* error on porting to gcc-4.4
in red.cc .. redefine p to const char *p


Error: X11/Xmu/WinUtil.h: No such file or  for nam installation
sudo apt-get install libxmu-dev


This should set you to start working in ns-2.1a with gcc-3.4 :). *Quick note: This is better done more easily with ns-2.31 patches. Lesson: don't hang on old versions, move on.













11.9.11

Grand challenges - LES an Earth Simulator

Scores of scientists around the world have come together to build an earth simulator to study patterns occurring in the earth such as weather, diseases etc. In one another step towards understanding ourselves from the science and that has been developed so far, it sounds exciting and inciting. Why we need grand challenges? Its not just to reach the goal, which is  usually grand in itself and might not be easily reachable. Grand challenges are hard to met, be it exploration of the moon which was one among the successful challenges or be it a treatment of cancer, which is still as elusive as it used to be years before. However, narrowing down search and study for such challenges in fact opens up vast knowledge in different directions enriching us with new techniques and technologies possibly to make human living better. LES is thus an interesting program and should create opportunity capture our planet's behaviorism in useful depth. To read more click here

4.9.11

On Korean news

On korean news today. It has been much fun working at Ubines Lab, Ajou University

27.8.11

I'm positive

This a short movie by our school senior. Check it out!!

27.7.11

Extreme weather hits South Korea yet again

Yet again Korea is hit hard by extreme rainfall, and this time it was even bigger. Last year. Sept. 21 2010, Seoul experienced 150mm rain which was enough to cripple road and subway system. Today, July 27 2011, more than 400mm rain not only crippled the transportation, but also took more than 38 human lives, destroyed apartments and condos and washed away cars. My condolence to the families who lost their beloved ones, hope they find strength and courage in this difficult situation.

The sign however of weather becoming more and more extreme signals the definite change of our environment. Seeing the lives being taken away like this in one more the worlds better economy makes me feel pain to see how people would manage in poorer countries if any of these things happen. 

16.7.11

Samsung Sens SF510

Ubuntu 11.10 support is near about wonderful support for samsung sens. For any issues one might find helpful resources at at this site.

1.7.11

Block commenting in TCL script

Simple procedure outlined in tcl wiki
 # First, define an block comment procedure, as:
  proc /* {args} {}
  # Then,you can use it as:
  /* { ...
  .. any comments,(with carefull { } pairs).
  } and more args in this line will be ignored.

Running tcl codes

Running tcl codes requires tclsh
Example $tclsh

Example tcl code to print out values:

# tcl script test for multiple loops
#tcl script test for multiple loops
#purpose: to check the value of val
#
set val 0
set tal 0
set num_apps 1
set num_of_tel_nodes 5
for {set nn 1} {$nn < $num_of_tel_nodes} {incr nn} {
 set tal [expr [expr $nn * $num_apps] + 1]
         for { } {$val < $tal} {incr val} {
            puts stdout  " $val"
        }
}
 puts stdout "###############################"
set num_of_vo_nodes 3
 for {set nn 1} {$nn < $num_of_vo_nodes} {incr nn} {
     set tal [expr [expr [expr $nn * $num_apps] + $num_of_tel_nodes] + 1]
         for { } {$val < $tal} {incr val} {
              puts stdout  " $val"
          }
 }





26.6.11

connecting remote desktop windows from ubuntu linux

terminal server client +  rdesktop is a simple utility to connect windows from ubuntu.

22.6.11

Suppress Warnings in g++ v4.0

Warning suppression is not recommended as it displays issues with the compiler, which could effect the result. However when compiling old codes, a lot of warning generates noise and makes it hard to locate errors in the program. In such cases, using such warning suppresses might just help in gnu C++ code
-Wno : Suppress Warnings
-Wno-write-strings
Go to GCC home page for other compiler options

26.4.11

Simple Optimal Workout Plan For Working People

Giving 1 hour 30 minutes everyday for this simple workout plan

  • 10 minutes of warm-up with light cardio
  • 30 minutes of weight training
  • 30 minutes cardio (treadmill run high speed)
Thanks to this link!!



24.4.11

TKN EDCA and DSR simulation on ns-2.31

The mac-80211e.cc runs into assertion error since control packet of DSR and the data packets cannot be properly dequeued for transmission.

Preliminary: Applied only if the DTail queue is used instead of CMUPriQueue

Problem:  The control packets of DSR and the data packet cannot be extracted serially from the queue gets into race condition while accessing pkttx_[pri] in sendDATA() of mac-80211e.cc

Solution. Ensure all control packet transmission priority is assigned to appropriate priority (iph->prio() = 0 //for setting highest priority)


21.4.11

Facts on Mahatma Gandhi's assination

I have come across many people who believe that Mahatma Gandhi should be blamed for partition of India. This article in the link reflects the fact on why such allegations are not only baseless and venomous but against the spirit of person who stood for humanity and truth. 

4.4.11

Special Command Lists -- System, Emacs, NS-2,3, vi

bash#
1. Enabling environment variable: source
2. 

Embassy Websites

List of only some of the embassy that is difficult to get googgling the web
1. Turkey

3.4.11

Generic PostScript Printer in Windows 7 and EPS

To generate eps image from excel or visio for publishing: For windows 7 to work with generic postscript setup adobe acrobat does not seem to have fine support. Simple workaround is to use Generic Printer driver from driver list of the operating system.
  • Add printers and find MSPublisher color printer
  • Convert settings to suit when you print to file to EPS (for EPS conversion)
  • Add bounding box using gsview