<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:yonghoon</id>
  <title>yonghoon</title>
  <subtitle>yonghoon</subtitle>
  <author>
    <name>yonghoon</name>
  </author>
  <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom"/>
  <updated>2008-09-05T18:20:07Z</updated>
  <lj:journal userid="15250818" username="yonghoon" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://yonghoon.livejournal.com/data/atom" title="yonghoon"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:5012</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/5012.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=5012"/>
    <title>How to Install LessTif or GeomView on Ubuntu</title>
    <published>2008-09-05T18:08:31Z</published>
    <updated>2008-09-05T18:20:07Z</updated>
    <content type="html">&lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;"&gt;
sudo apt-get install geomview

&lt;/pre&gt;&lt;br /&gt;If you get this message, &amp;quot;No package 'gtk+-2.0' found&amp;quot;,&lt;br /&gt;&lt;br /&gt;gtk+-2.0 = libgtk2.0-dev&lt;br /&gt;&lt;br /&gt;sudo apt-get install libgtk2.0-dev&lt;br /&gt;&lt;br /&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:4799</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/4799.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=4799"/>
    <title>How to Install NS-2 on Fedora</title>
    <published>2008-08-27T01:39:03Z</published>
    <updated>2008-08-27T01:39:03Z</updated>
    <category term="install"/>
    <category term="ns-2"/>
    <category term="fedora"/>
    <content type="html">&lt;div class="entrytext"&gt; 			&lt;div class="snap_preview"&gt;&lt;p&gt;STEP 1&lt;/p&gt; &lt;p&gt;From terminal login as super user and do the following.(internet must also be connected in order to install the package dependencies.&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;yum install autoconf&lt;br /&gt; yum install automake&lt;br /&gt; yum install gcc-c++&lt;br /&gt; yum install libX11-devel&lt;br /&gt; yum install xorg-x11-proto-devel&lt;br /&gt; yum install libXt-devel&lt;br /&gt; yum install libXmu-devel&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;STEP 2&lt;/p&gt; &lt;p&gt;From terminal download ns-allinone-2.30 and type the following commands&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;$ wget http://www.isi.edu/nsnam/dist/ns-allinone-2.30.tar.gz&lt;br /&gt; $ tar -xzf ns-allinone-2.30.tar.gz&lt;br /&gt; $ cd ns-allinone-2.30.tar.gz&lt;br /&gt; $. /install&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;STEP 3&lt;/p&gt; &lt;p&gt;Now go to /etc folder and type&lt;/p&gt; &lt;p&gt;gedit ~/.bashrc&lt;/p&gt; &lt;p&gt;Add the following lines to the end of it. Remember replace “/usr/local/” by your installation path like “/home/kazim”. And accordingly also change the version numbers. This is for ns 2.30.&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;# LD_LIBRARY_PATH&lt;br /&gt; OTCL_LIB=/usr/local/ns-allinone-2.30/otcl-1.12&lt;br /&gt; NS2_LIB=/usr/local/ns-allinone-2.30/lib&lt;br /&gt; X11_LIB=/usr/X11R6/lib&lt;br /&gt; USR_LOCAL_LIB=/usr/local/lib&lt;br /&gt; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB&lt;/p&gt; &lt;p&gt;# TCL_LIBRARY&lt;br /&gt; TCL_LIB=/usr/local/ns-allinone-2.31/tcl8.4.14/library&lt;br /&gt; USR_LIB=/usr/lib&lt;br /&gt; export TCL_LIBRARY=$TCL_LIB:$USR_LIB&lt;/p&gt; &lt;p&gt;# PATH&lt;br /&gt; XGRAPH=/usr/local/ns-allinone-2.30/bin:/usr/local/ns-allinone-2.30/tcl8.4.13/unix:/usr/local/ns-allinone-2.30/tk8.4.13/unix&lt;br /&gt; NS=/usr/local/ns-allinone-2.30/ns-2.30/&lt;br /&gt; NAM=/usr/local/ns-allinone-2.30/nam-1.12/&lt;br /&gt; PATH=$PATH:$XGRAPH:$NS:$NAM&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Let it take effect immediately&lt;/p&gt; &lt;p&gt;source ~/.bashrc&lt;/p&gt; &lt;p&gt;Note: the step described above is important; otherwise, you cannot run ns successfully.&lt;br /&gt; or you can restart your X windows.i.e. logout and then login, or reboot your system, to make it work.)&lt;/p&gt; &lt;p&gt;Now, the installation has been completed. If you try:&lt;br /&gt; $ ns&lt;/p&gt; &lt;p&gt;Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”&lt;/p&gt; &lt;p&gt;If you miss out step 1 you may get the following errors&lt;/p&gt; &lt;p&gt;Build XGraph-12.1&lt;br /&gt; ============================================================&lt;br /&gt; loading cache ./config.cache&lt;br /&gt; checking for a BSD compatible install… /usr/bin/install -c&lt;br /&gt; checking whether build environment is sane… yes&lt;br /&gt; checking whether make sets ${MAKE}… yes&lt;br /&gt; checking for working aclocal… missing&lt;br /&gt; checking for working autoconf… missing&lt;br /&gt; checking for working automake… missing&lt;br /&gt; checking for working autoheader… missing&lt;br /&gt; checking for working makeinfo… missing&lt;br /&gt; checking if malloc debugging is wanted… no&lt;br /&gt; checking for gcc… no&lt;br /&gt; checking for cc… no&lt;br /&gt; configure: error: no acceptable cc found in $PATH&lt;br /&gt; make: *** No targets specified and no makefile found. Stop.&lt;br /&gt; Can not create xgraph; But xgraph is an optional package, continuing…&lt;/p&gt; &lt;p&gt;If you miss step 3&lt;/p&gt; &lt;p&gt;At the prompt when you type ns you will get&lt;br /&gt; Ns command not found&lt;/p&gt; &lt;p&gt;Source: &lt;a href="http://www.edaboard.com/ftopic297674.html"&gt;http://www.edaboard.com/ftopic297674.html&lt;/a&gt;&lt;/p&gt; &lt;/div&gt;&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:4397</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/4397.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=4397"/>
    <title>How to Install Qt3 in Ubuntu</title>
    <published>2008-08-15T18:24:50Z</published>
    <updated>2008-08-15T18:27:14Z</updated>
    <category term="qt3"/>
    <category term="install"/>
    <category term="ubuntu"/>
    <content type="html">&lt;i&gt;sudo apt-get install&lt;/i&gt; libqt3-mt-dev qt3-designer &lt;i&gt;qt3-dev-tools&lt;/i&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:4153</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/4153.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=4153"/>
    <title>[ns-2] How to assign a different trasnmission power (range) to each node</title>
    <published>2008-06-18T22:23:14Z</published>
    <updated>2008-06-18T22:23:14Z</updated>
    <category term="transmission range"/>
    <category term="ns-2"/>
    <category term="ns2"/>
    <category term="different"/>
    <content type="html"># attach a new Agent/MessagePassing/Flooding to each node on port $MESSAGE_PORT&lt;br /&gt;for {set i 0} {$i &amp;lt; $num_nodes} {incr i} {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set a($i) [new Agent/MessagePassing/Flooding]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $n($i) attach&amp;nbsp; $a($i) $MESSAGE_PORT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $a($i) set messages_seen {}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set if_($i) [$n($i) set netif_(0)]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# then you can set the transmission power for each node individually :&lt;br /&gt;for {set i 0} {$i &amp;lt; 10} {incr i} {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if { $i &amp;lt; 5} {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # transmission range: 40m&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $if_($i) set Pt_ 8.5872e-4&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # transmission range: 100m&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $if_($i) set Pt_ 7.214e-3&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:3994</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/3994.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=3994"/>
    <title>[ns2] Adjusting Transmission Range</title>
    <published>2008-06-18T03:51:37Z</published>
    <updated>2008-06-18T03:51:37Z</updated>
    <category term="transmission range"/>
    <category term="ns-2"/>
    <category term="ns2"/>
    <content type="html">&lt;div&gt;from http://blog.empas.com/blhole/read.html?a=10042170&lt;br /&gt;&lt;br /&gt;$NS_HOME/indep-utils/propagation/threshold.cc&lt;/div&gt; &lt;div&gt;를 다음 명령으로 컴파일한다.&lt;/div&gt; &lt;div&gt;$&amp;nbsp;g++ -o threshold threshold.cc&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;Phy/WirelessPhy set RXThresh_ 3.652e-10&lt;/div&gt;  &lt;div&gt;위의 기본 RXThresh_값을 기준으로 하여 거리에 대한 Pt를 결정한다.&lt;br /&gt;&lt;br /&gt;예제&lt;/div&gt; &lt;div&gt;$ ./threshold -m TwoRayGround &lt;font color="#ff0000"&gt;-Pt 7.214e-3&lt;/font&gt; &lt;font color="#ff0000"&gt;100m&lt;br /&gt;&lt;/font&gt;distance = 100&lt;br /&gt;propagation model: TwoRayGround&lt;/div&gt; &lt;div&gt;Selected parameters:&lt;br /&gt;transmit power: 0.007214&lt;br /&gt;frequency: 9.14e+08&lt;br /&gt;transmit antenna gain: 1&lt;br /&gt;receive antenna gain: 1&lt;br /&gt;system loss: 1&lt;br /&gt;transmit antenna height: 1.5&lt;br /&gt;receive antenna height: 1.5&lt;/div&gt; &lt;div&gt;Receiving threshold &lt;font color="#ff0000"&gt;RXThresh_ is: 3.65209e-10&lt;br /&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;-Pt 0.11542 200m&lt;/div&gt; &lt;div&gt;-Pt 0.58432 300m&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Assume AT&amp;amp;T's Wavelan PCMCIA card -- Chalermek&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pt_ = 8.5872e-4; // For 40m transmission range.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pt_ = 7.214e-3;&amp;nbsp; // For 100m transmission range.&lt;/div&gt; &lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pt_ = 1.7615e-2&amp;nbsp;&amp;nbsp; ;# 125m&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pt_ = 0.2818; // For 250m transmission range.&lt;/div&gt; &lt;div&gt;$NS2/mac/wireless-phy.cc&lt;/div&gt; &lt;div&gt;&amp;nbsp;&lt;/div&gt; &lt;div&gt;# Initialize the SharedMedia interface with parameters to make&lt;br /&gt;# it work like the 914MHz Lucent WaveLAN DSSS radio interface&lt;br /&gt;Phy/WirelessPhy set CPThresh_ 10.0&lt;br /&gt;Phy/WirelessPhy set CSThresh_ 1.559e-11&lt;br /&gt;Phy/WirelessPhy set RXThresh_ 3.652e-10&lt;br /&gt;Phy/WirelessPhy set bandwidth_ 2e6&lt;br /&gt;Phy/WirelessPhy set Pt_ 0.28183815&lt;br /&gt;Phy/WirelessPhy set freq_ 914e+6&lt;br /&gt;Phy/WirelessPhy set L_ 1.0&lt;br /&gt;Phy/WirelessPhy set debug_ false&lt;br /&gt;&lt;/div&gt; &lt;div&gt;위의 값들중에서 Pt_ (transmission power)만을 변경하여 간단하게 transmission range를 조정할 수 있다.&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:3709</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/3709.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=3709"/>
    <title>[Article] Crash Warning System Monitors Nearby Traffic And Warns Of Possible Collisions</title>
    <published>2008-05-28T20:29:28Z</published>
    <updated>2008-05-28T20:29:28Z</updated>
    <category term="sciencedaily"/>
    <category term="vanet"/>
    <content type="html">&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.sciencedaily.com/releases/2008/01/080112082239.htm"&gt;Crash Warning System Monitors Nearby Traffic And Warns Of Possible Collisions&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;ScienceDaily (2008-01-13) -- Scientists have demonstrated in the lab a collision warning system for cars that could alert the driver several seconds in advance of an imminent impact. The device could save thousands of lives and usher in the first steps towards the 'connected car'. It knows its location, can talk to other cars and can tell the future. Are we entering the era of truly automated cars? ... &lt;em&gt;&amp;gt; &lt;a href="http://www.sciencedaily.com/releases/2008/01/080112082239.htm"&gt;read full article&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:3340</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/3340.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=3340"/>
    <title>VANET Projects</title>
    <published>2008-05-28T20:25:26Z</published>
    <updated>2008-05-28T20:27:12Z</updated>
    <category term="v2v"/>
    <category term="network"/>
    <category term="vanet"/>
    <category term="vehicular"/>
    <content type="html">»&lt;a class="nounderline" target="_blank" href="http://cartel.csail.mit.edu/"&gt; CarTel&lt;/a&gt; &lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://ivc.epfl.ch/"&gt; EPFL Vechicular Networks Security Project &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.car-2-car.org/"&gt; CAR-2-CAR Communication Consortium &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.et2.tu-harburg.de/fleetnet/index.html"&gt; FleetNet&lt;/a&gt; &lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.cartalk2000.net/"&gt; CarTALK 2000 &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://mit.edu/its/dynamit.html"&gt; DynaMIT &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.informatik.uni-mannheim.de/pi4/projects/now/"&gt; Network-on-Wheels &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://netlab.cs.ucla.edu/cgi-bin/usemod10/wiki.cgi?MobEyes"&gt; MobEyes &lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://gm.web.cmu.edu/"&gt; General Motors Collaborative Research Lab/CMU&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www-path.eecs.berkeley.edu/"&gt; PATH&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://citrans.pti.psu.edu/"&gt; CITranS&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.aqualab.cs.northwestern.edu/projects/C3.html"&gt; C3&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://vista.civil.northwestern.edu/"&gt; VISTA&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://www.et2.tu-harburg.de/Mitarbeiter/Wischhof/sotis/sotis.htm"&gt; SOTIS&lt;/a&gt;&lt;br /&gt;»&lt;a class="nounderline" target="_blank" href="http://prisms.cs.umass.edu/diesel"&gt; DieselNet&lt;/a&gt;&lt;br /&gt;»&lt;a href="http://web.njit.edu/~borcea/invent/index.html"&gt; INVENT&lt;/a&gt;&amp;nbsp;(NJIT)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:3175</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/3175.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=3175"/>
    <title>Connecting with Minicom and Transferring files to Gumstix</title>
    <published>2008-04-21T06:19:24Z</published>
    <updated>2008-04-22T01:45:55Z</updated>
    <content type="html">&lt;h3&gt; &lt;span class="mw-headline"&gt; Connecting with Minicom &lt;/span&gt;&lt;/h3&gt; &lt;ol&gt;&lt;li&gt; First, configure Minicom &lt;ol&gt;&lt;li&gt; As root, run &lt;tt&gt;minicom -s&lt;/tt&gt; &lt;/li&gt;&lt;li&gt; Under "Serial Port Setup" choose the following &lt;ul&gt;&lt;li&gt; Serial Device: &lt;b&gt;/dev/ttyUSB0&lt;/b&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;If you are not sure which tty is connected, "dmesg" after unplug or plug it.&lt;/font&gt; &lt;/li&gt;&lt;li&gt; Bps/Par/Bits: &lt;b&gt;115200 8N1&lt;/b&gt; &lt;/li&gt;&lt;li&gt; Hardware Flow Control: &lt;b&gt;No&lt;/b&gt; (this is important) &lt;/li&gt;&lt;li&gt; Software Flow Control: &lt;b&gt;No&lt;/b&gt; &lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt; Hit [ESC] until you return to the main configuration menu &lt;/li&gt;&lt;li&gt; Select "Save Setup as dfl" to save the default setup &lt;/li&gt;&lt;li&gt; Select "Exit from Minicom" to exit the program &lt;/li&gt;&lt;/ol&gt; &lt;/li&gt;&lt;li&gt; Connect the serial cable to the serial port on your computer and to the serial port on the Gumstix &lt;/li&gt;&lt;li&gt; Run Minicom again with &lt;tt&gt;minicom -o&lt;/tt&gt;. This tells it to skip all the modem initialization strings, which are unnecessary when communicating with the Gumstix. You may need to do this as root if your normal login doesn't have permission to access the serial port. &lt;/li&gt;&lt;li&gt; Plug the power adapter into the power jack of the Gumstix. When connected and powered, you should see a message from &lt;a href="http://docwiki.gumstix.org/index.php/U-Boot" title="U-Boot"&gt;U-Boot&lt;/a&gt; followed by the normal Gumstix boot sequence in the minicom window. &lt;/li&gt;&lt;li&gt; Log in for the first time with username &lt;i&gt;root&lt;/i&gt; and password &lt;i&gt;gumstix&lt;/i&gt; &lt;/li&gt;&lt;li&gt; When finished, you can exit Minicom by typing &lt;b&gt;[CTRL-A]&lt;/b&gt; then pressing &lt;b&gt;Q&lt;/b&gt;. This exits without running the normal modem reset sequence, which will only send garbage to the Gumstix &lt;/li&gt;&lt;/ol&gt; &lt;a name="Transferring_files"&gt;&lt;/a&gt;&lt;h3&gt; &lt;span class="mw-headline"&gt; Transferring files &lt;/span&gt;&lt;/h3&gt; &lt;p&gt;To send a file to the Gumstix: &lt;/p&gt; &lt;ol&gt;&lt;li&gt; Run 'rz' on the Gumstix. No parameters are needed, generally. &lt;/li&gt;&lt;li&gt; From the terminal, send a file using ZModem. In Minicom, this is done with &lt;b&gt;[Ctrl-A]&lt;/b&gt; and then &lt;b&gt;S&lt;/b&gt;, which brings up a file selection dialog. &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;To receive a file from the Gumstix:  &lt;/p&gt; &lt;ol&gt;&lt;li&gt; Transmit the file(s) using 'sz', specifying them as arguments. &lt;/li&gt;&lt;li&gt; The terminal, ideally, will detect and accept the transfer automatically. &lt;/li&gt;&lt;/ol&gt; &lt;ol&gt;&lt;li&gt; if you encounter a "Failure executing protocol" error, trying to send a file with Zmodem under minicom, you should install a Y/Z modem. apt-get install lrzsz &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;from http://docwiki.gumstix.org/Connecting_via_Serial_-_Linux#Connecting_with_Minicom</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:2934</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/2934.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=2934"/>
    <title>How to Install Buildroot for Gumstix</title>
    <published>2008-04-21T04:30:39Z</published>
    <updated>2008-04-21T04:52:39Z</updated>
    <content type="html">&lt;ol&gt;&lt;li&gt;sudo apt-get install build-essential libncurses5-dev bison flex texinfo zlib1g-dev gettext libssl-dev libc6-dev make g++ gcc automake1.9 subversion libpng12-dev libjpeg62-dev libfreetype6-dev pkg-config fbset libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-dev libglib-2.0-dev lrzsz mtd-tools&lt;br /&gt;&lt;br /&gt;problem with libglib-2.0-dev! &lt;/li&gt;&lt;li&gt;svn co -r1541 http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot&lt;br /&gt;username:root, password:root&lt;/li&gt;&lt;li&gt;cd gumstix-buildroot/&lt;/li&gt;&lt;li&gt;make defconfig&lt;br /&gt;select target architecture &amp;amp; cpu type (Xscale for connex 400 xm)&lt;/li&gt;&lt;li&gt;make&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Gumstix: A Newbie' First Experience&lt;br /&gt;http://www.robomontreal.com/Gumstix_Newbie.php</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:2668</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/2668.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=2668"/>
    <title>Install Ruby on Ubuntu</title>
    <published>2008-04-10T09:05:26Z</published>
    <updated>2008-04-10T09:05:26Z</updated>
    <content type="html">&lt;a href="https://help.ubuntu.com/community/RubyOnRails"&gt;https://help.ubuntu.com/community/RubyOnRails&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:2547</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/2547.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=2547"/>
    <title>How to Install NS-2 on Ubuntu</title>
    <published>2008-04-10T08:19:36Z</published>
    <updated>2008-04-10T08:21:13Z</updated>
    <category term="ubuntu"/>
    <category term="ns-2"/>
    <content type="html">from http://alkautsarpens.wordpress.com/2008/02/05/install-ns231-for-ubuntu-gutsy-710/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ tar -xzvf ns-allinone-2.33.tar.gz&lt;br /&gt;$ cd ns-allinone-2.33&lt;br /&gt;$ sudo apt-get install build-essential autoconf automake libxmu-dev&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Now run this command :&lt;br /&gt;$./install&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ gedit ~/.bashrc&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add the following lines to the end of it. Remember replace&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; “/home/networklab/ns/” by something like “/home/yourname/”&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ——————————————————————————————–&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # LD_LIBRARY_PATH&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTCL_LIB=/home/networklab/ns/ns-allinone-2.33/otcl-1.13&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS2_LIB=/home/networklab/ns/ns-allinone-2.33/lib&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X11_LIB=/usr/X11R6/lib&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USR_LOCAL_LIB=/usr/local/lib&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIB:$USR_LOCAL_LIB&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # TCL_LIBRARY&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TCL_LIB=/home/networklab/ns/ns-allinone-2.33/tcl8.4.14/library&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USR_LIB=/usr/lib&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; export TCL_LIBRARY=$TCL_LIB:$USR_LIB&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PATH&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XGRAPH=/home/networklab/ns/ns-allinone-2.33/bin:/your/path/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns-allinone-2.33/tcl8.4.14/unix:/your/path/ns-allinone-2.33/tk8.4.14/unix&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS=/home/networklab/ns/ns-allinone-2.33/ns-2.33/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAM=/home/networklab/ns/ns-allinone-2.33/nam-1.13/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATH=$PATH:$XGRAPH:$NS:$NAM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ————————–&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Let it take effect immediately:&lt;br /&gt;&lt;b&gt;$ source ~/.bashrc&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Note: if ns unsuccessfully. you can restart your X windows, or reboot your system, to make it work Now,the installation has been completed. then try:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ ns&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”&lt;br /&gt;&lt;br /&gt;Validation :&lt;br /&gt;&lt;b&gt;$ cd ns-2.33&lt;br /&gt;$ ./validate&lt;/b&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:2058</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/2058.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=2058"/>
    <title>awk tutorials and examples</title>
    <published>2008-04-01T06:53:19Z</published>
    <updated>2008-04-01T06:53:19Z</updated>
    <content type="html">Examples&lt;br /&gt;&lt;a href="http://sparky.rice.edu/~hartigan/awk.html"&gt;http://sparky.rice.edu/~hartigan/awk.html&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:1886</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/1886.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=1886"/>
    <title>[scrap] Network Simulator for Wireless</title>
    <published>2008-03-31T05:10:56Z</published>
    <updated>2008-03-31T05:10:56Z</updated>
    <category term="ns-2"/>
    <content type="html">http://www.winlab.rutgers.edu/~zhibinwu/html/network_simulator_2.html&lt;br /&gt;&lt;h3&gt;Introduction&lt;/h3&gt; 		&lt;p align="left" style="margin-top: 10px; margin-left: 10px; margin-right: 10px;"&gt; 		Ns-2 is a widely used tool to simulate the behavior of wired and  		wireless networks. Useful general information can be found at&lt;/p&gt; 		&lt;p align="left" style="margin-top: 10px; margin-left: 10px; margin-right: 10px;"&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		Official ns-2 website (&lt;a href="http://www.isi.edu/nsnam/ns/"&gt;http://www.isi.edu/nsnam/ns/&lt;/a&gt; )&amp;nbsp;&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; An ns-2 Documentation generated by Doxygen is in&amp;nbsp;&lt;a href="http://www-rp.lip6.fr/ns-doc/ns226-doc/html/index.htm"&gt;http://www-rp.lip6.fr/ns-doc/ns226-doc/html/index.htm&lt;/a&gt;&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		Two good tutorials&amp;nbsp;about ns-2. &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		&lt;a href="http://www.isi.edu/nsnam/ns/tutorial/index.html"&gt;Wireless tutorial&lt;/a&gt; by Marc Greis&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		&lt;a href="http://nile.wpi.edu/NS/"&gt;ns by example&lt;/a&gt; &lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/pdf/ns2tutorial.pdf"&gt;My presentation: ns2 tutorial for wireless simulation&amp;nbsp;&lt;/a&gt; WINLAB, June 2003&lt;br /&gt;  	&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt;  		&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/ppt/ns2-introduction.ppt"&gt;My Lecture : Introduction to ns2 &lt;/a&gt;ECE 330:543 Class Lecture, Oct. 2007&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; Another good  		&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/pdf/tr_ns802_11.pdf"&gt;tutorial of ns-2&lt;/a&gt;&lt;/p&gt;       &lt;h3&gt;&lt;a name="install"&gt;&lt;/a&gt;Installation &amp;amp; Debug&lt;/h3&gt;                &lt;p align="left" style="margin-top: 10px; margin-left: 10px; margin-right: 10px;"&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; &lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/install_ns-2.27.html"&gt;Install&amp;nbsp;ns-2.27 in Red Hat Linux&lt;/a&gt;&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; &lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/install_ns-gcc4.html"&gt;Install ns 2.28 in Debian&amp;nbsp;with gcc 4.0 or above&lt;/a&gt;&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; &lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns-debug.html"&gt;Debug ns-2 with gdb&lt;/a&gt;&lt;/p&gt;       &lt;h3&gt;Simulation Configuration&lt;a name="General:"&gt;&lt;/a&gt;&lt;/h3&gt;             &lt;ol&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/NS_examp.html"&gt;Basic simulation scripts of wireless scenarios.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns2_wireless_scene.htm"&gt;Traffic, Topology and Mobility generation in ns-2&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns_trace.html"&gt;Analyze CMU traces (for wireless simulation) and awk code.&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/Hdr_ns.html"&gt;Header and Address Handling in ns-2&lt;/a&gt;&lt;/li&gt;&lt;li&gt; &lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/otcl.htm"&gt;Understanding OTcl syntax in ns-2&lt;/a&gt; &lt;/li&gt;&lt;/ol&gt;       		&lt;h3&gt;&lt;a name="Physical_Layer"&gt;&lt;/a&gt;Physical Layer&lt;/h3&gt;       &lt;ol&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/tworayground.html"&gt;Demystify TwoRayGround Propagation Model&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns_fading_error.html"&gt;Introduce Ricean Fading to produce probabilistic Link Error&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns2-list-problem.html"&gt;Why list-based improvements in channel.cc of ns-2.27&amp;nbsp;cause problems?&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;       &lt;h3&gt;&lt;a name="MAC_layer"&gt;&lt;/a&gt;MAC layer &lt;/h3&gt;       &lt;ol&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/mac_if_ns2.htm"&gt;Interfacing MAC&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/wlan_back.htm"&gt;Understand IEEE 802.11 MAC Standard&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/ns2_mac.html"&gt;Analysis of the 802.11 MAC code&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/mac_ns_rts.htm"&gt;Simulation example: Measuring the effects of RTS/CTS on 802.11 link&lt;/a&gt;&lt;br /&gt;         &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/multirate_ns_mac.htm"&gt;Practice: Implement Multi-Rate MAC&lt;/a&gt;&lt;br /&gt;         &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/mac_ns_bugs.htm"&gt;Discussion of bugs and issues of IEEE802.11 MAC implementation&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;       &lt;h3&gt;&lt;a name="Routing"&gt;Routing&lt;/a&gt;&lt;/h3&gt;       &lt;ol&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/DSR_ns2.html"&gt;Analysis of the DSR sourcecode in ns-2.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/DSDV_ns2.html"&gt;Analysis of the DSDV in network simulator-2.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/Routing_Agent.html"&gt;How to produce a new Routing Agent with Fixed Routing Table&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.winlab.rutgers.edu/%7Ezhibinwu/html/dsr_trace_anlysis.html"&gt;Calculate Routing Performance Metric from trace file&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;       &lt;h3&gt;&lt;a name="Miscellanous_Notes"&gt;&lt;/a&gt;Summary of ns-2 bugs for wireless  simulation&lt;/h3&gt; 		&lt;p align="left" style="margin-top: 10px; margin-left: 10px; margin-right: 10px;"&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; channel.cc List-based improvement causes "Segmentation Fault".&lt;br /&gt; 		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; mac-802_11.cc: Bug in Defer timer causes "Event UID not valid!".&lt;br /&gt;  		&lt;img width="12" height="11" border="0" alt="" src="http://www.winlab.rutgers.edu/%7Ezhibinwu/image/bullet_orange.gif" /&gt; dsdv.cc: double IP header bug.&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:1605</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/1605.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=1605"/>
    <title>How to use Google Maps offline?</title>
    <published>2008-03-30T00:20:52Z</published>
    <updated>2008-03-31T04:12:46Z</updated>
    <category term="maps"/>
    <category term="offline"/>
    <category term="google"/>
    <content type="html">&lt;ul&gt;&lt;li&gt;&lt;b&gt;How Google Maps Works&lt;br /&gt;&lt;/b&gt;http://www.codeproject.com/KB/scrapbook/googlemap.aspx&lt;/li&gt;&lt;li&gt;&lt;b&gt;GPS Visualizer&lt;/b&gt;&lt;br /&gt;http://www.gpsvisualizer.com/&lt;/li&gt;&lt;li&gt;&lt;b&gt;KML for Google Earth and Maps&lt;/b&gt;&lt;br /&gt;http://code.google.com/apis/kml&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:1397</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/1397.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=1397"/>
    <title>Linux Command Reference</title>
    <published>2008-03-29T21:10:29Z</published>
    <updated>2008-03-31T04:07:39Z</updated>
    <category term="regular expression"/>
    <category term="linux"/>
    <category term="command"/>
    <category term="vi"/>
    <content type="html">&lt;font color="#0000ff"&gt;&lt;b&gt;&lt;font size="3"&gt;Reference Sites&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Quick Command Reference&lt;/b&gt;&lt;br /&gt;http://www.pixelbeat.org/cmdline.html&lt;/li&gt;&lt;li&gt;&lt;b&gt;Debian Package Management&lt;/b&gt;&lt;br /&gt;http://qref.sourceforge.net/Debian/reference/ch-package.en.html&lt;/li&gt;&lt;li&gt;&lt;b&gt;Vi Reference Card&lt;/b&gt;&lt;br /&gt;http://www.digilife.be/quickreferences/QRC/Vi%20Reference%20Card.pdf&lt;br /&gt;http://tnerual.eriogerg.free.fr/vim.html&lt;/li&gt;&lt;li&gt;&lt;b&gt;Regular Expression&lt;br /&gt;&lt;/b&gt;http://gnosis.cx/publish/programming/regular_expressions.html&lt;br /&gt;http://www.linuxforums.org/applications/demystifying_regular_expressions.html&lt;/li&gt;&lt;/ul&gt;&lt;font size="3" color="#0000ff"&gt;&lt;b&gt;Frequently Used Cases&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Find a text within files&lt;/b&gt;&lt;br /&gt;command: grep -R &amp;lt;text&amp;gt; *&lt;br /&gt;example: grep -R korea *&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:809</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/809.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=809"/>
    <title>Solution to Broadcast to all neighbors in NS-2</title>
    <published>2008-03-28T05:41:57Z</published>
    <updated>2008-03-31T04:08:20Z</updated>
    <content type="html">&lt;b&gt;[ns] Solution to Broadcast to all neighbors&lt;/b&gt;&lt;br /&gt;http://mailman.isi.edu/pipermail/ns-users/2000-June/009635.html&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Wireless Flooding in ns-2&lt;/b&gt;&lt;br /&gt;http://yans.inria.fr/code/ns-2/?diff/1056ff50e303/tcl/ex/wireless-flooding.tcl</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:yonghoon:571</id>
    <link rel="alternate" type="text/html" href="http://yonghoon.livejournal.com/571.html"/>
    <link rel="self" type="text/xml" href="http://yonghoon.livejournal.com/data/atom/?itemid=571"/>
    <title>Unicast and Brocast in Ns-2</title>
    <published>2008-03-28T03:50:19Z</published>
    <updated>2008-03-30T14:46:42Z</updated>
    <category term="broadcast"/>
    <category term="ns-2"/>
    <content type="html">&lt;br /&gt;http://nuraini.net/2007/09/16/unicast-an&lt;div class="asset-body"&gt;&lt;wbr&gt;&lt;/wbr&gt;d-broadcat-packet-on-ns2/&lt;br /&gt;&lt;br /&gt;Those following code are some example code for sending packet unicast and broadcast on NS2.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;void protocol::unicast(Packet *p, nsaddr_t destination)&lt;br /&gt; {&lt;br /&gt; hdr_cmn* hdrcmn = HDR_CMN(p);&lt;br /&gt; hdr_ip* iphdr = HDR_IP(p);&lt;br /&gt; // set all the necessary things for the common header&lt;br /&gt; hdrcmn-&amp;gt;next_hop_ = destination;&lt;br /&gt; hdrcmn-&amp;gt;prev_hop_ = this-&amp;gt;addr();&lt;br /&gt; hdrcmn-&amp;gt;direction() = hdr_cmn::DOWN;&lt;br /&gt; // take a look its name on packet.h&lt;br /&gt; hdrcmn-&amp;gt;ptype() = PT_PROTOCOLNAME;&lt;br /&gt; hdrcmn-&amp;gt;addr_type() = NS_AF_INET;&lt;br /&gt; // setting the ip header&lt;br /&gt; iphdr-&amp;gt;saddr() = this-&amp;gt;addr();&lt;br /&gt; iphdr-&amp;gt;sport() = 254; // 1-254&lt;br /&gt; iphdr-&amp;gt;daddr() = destination;&lt;br /&gt; iphdr-&amp;gt;dport() = 254; // 1-254&lt;br /&gt; iphdr-&amp;gt;ttl() = 32;&lt;br /&gt; Scheduler::instance().schedule(ll, p, 0.0);&lt;br /&gt; }&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;&lt;b&gt;void protocol::broadcast(Packet *p)&lt;br /&gt; {&lt;br /&gt; hdr_cmn* hdrcmn = HDR_CMN(p);&lt;br /&gt; hdr_ip* iphdr = HDR_IP(p);&lt;br /&gt; // set all the necessary things for the common header&lt;br /&gt; hdrcmn-&amp;gt;next_hop_ = IP_BROADCAST;&lt;br /&gt; hdrcmn-&amp;gt;prev_hop_ = this-&amp;gt;addr();&lt;br /&gt; hdrcmn-&amp;gt;direction() = hdr_cmn::DOWN;&lt;br /&gt; // setting the ip header&lt;br /&gt; iphdr-&amp;gt;saddr() = this-&amp;gt;addr();&lt;br /&gt; iphdr-&amp;gt;sport() = 254; // 1-254&lt;br /&gt; iphdr-&amp;gt;daddr() = IP_BROADCAST;&lt;br /&gt; iphdr-&amp;gt;dport() = 254; // 1-254&lt;br /&gt; iphdr-&amp;gt;ttl() = 32;&lt;br /&gt; Scheduler::instance().schedule(ll, p, 0.0);&lt;br /&gt; }&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;/code&gt; The above codes can be called anywhere on sourcecode.cc (anyname.cc). For example :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;int protocol::command(int argc, const char*const* argv)&lt;br /&gt; {&lt;br /&gt; if (argc == 4) {&lt;br /&gt; if (strcmp(argv[1], "&lt;font color="red"&gt;sendData&lt;/font&gt;“) == 0)&lt;br /&gt; {&lt;br /&gt; Packet* newpkt = allocpkt();&lt;br /&gt; //some packet configuration&lt;br /&gt; this-&amp;gt;broadcast(newpkt);&lt;br /&gt; return (TCL_OK);&lt;br /&gt; }&lt;br /&gt; }&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;When the node will receive it ?&lt;br /&gt; We should make recv procedure.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;code&gt;void protocol::recv(Packet* pkt, Handler*)&lt;br /&gt; {&lt;br /&gt; hdr_cmn*  hdrcmn = HDR_CMN(pkt);    //Access the common header for the received packet:&lt;br /&gt; hdr_ip* hdrip = HDR_IP(pkt);        // Access the IP header for the received packet:&lt;br /&gt; cout &amp;lt;&amp;lt; "node " &amp;lt;&amp;lt; this-&amp;gt;addr() &amp;lt;&amp;lt; "received from node " &amp;lt;&amp;lt; hdrcmn-&amp;gt;prev_hop_;&lt;br /&gt; }&lt;/code&gt;&lt;/b&gt;&lt;/div&gt;</content>
  </entry>
</feed>
