Wednesday, April 16, 2008
Cygwin: Linux Environment Over Windows
With Cygwin you can install and run all Linux compliant applications over your Windows O/S. To me I was very stratified with my Linux installation on my desktop, but I had to reinstall NS-2 on my Windows for the purpose of portability
I Still dream of the day that I can get rid of Windows for ever and shut up singing songs like this ... But it seems that it isn't very soon and may never come
But until this moment and after installing platform independent applications on Linux and Window I can feel that I'm now a Cross Platform Human being or a Platform Independent Person ... and still there are many cross roads that I must pass quickly
For a quick reference on installing Cygwin just click here
YUV Genius: A YUV Renderer Through Windows Media Player
You can get many YUV files from this mmLab page
There is some open source projects that able to render this format like this C++ Project
You cans aslo use YUV Genius to render this file in Windows Media Player , YUV Genius is a smart YUV renderer, which can enrich your Windows Media Player with the capability of YUV rendering. By this way the viewing of YUV files is as simple as just double click on a YUV file and Windows Media Player will know what to do.
Click here to download the YUVGenius package
For more information you can follow this link
Thursday, April 10, 2008
Overriding UDP and Application layer in NS-2
This article is a great, it explains the process in more detail but it is application specific and more complicated that the needed stuff. So I tried to down the stairs and make a simplified version of the code to override the UDP and Application layer.
To run the example you just need to do the following steps:
1- Download the source and extract it then place the ex1 folder @ /your path/ns-allinone-2.32/ns-2.32/
2- Modify the ns-default.tcl file @ /your path/ns-allinone-2.32/ns-2.32/ tcl/lib/
Add the following line
Agent/UdpLayer set packetSize_ 1052
3- Modify the Makefile.in @ /your path/ns-allinone-2.32/ns-2.32/
Put in the OBJ_CC list the following lines
ex1/udplayer.o \
ex1/sinklayer.o \
ex1/trafficlayer.o \
@V_STLOBJ@
4- Recompilation of NS-2
cd /your path/ns-allinone-2.32/ns-2.32/
./configure;
make clean; make
5- Run the example
ns ex1/test.tcl
I hope this can help and I can do next tasks quickly