Dec 16, 2010

Configuring Fortran77 in Windows7

I followed the article to integrate Fortran to NetBeans. In order to do so, the following procedure should be followed.

  1. install cygwin (linux like environment for windows)
  2. install the Fortran compiler and related tools
  3. integrate to Fortran to Netbeans.
I will describe the first two only, since the above linked article has nicely described "How to integrate Fortran to Netbeans". 

Install Cygwin
  1. download the setup.exe from cygwin.com from the location pointed out in the figure below.









2. Once you run the setup.exe it will prompt you three options. My preference is the second one. download without installing- as shown in the following figure.

3. Then you can click "Next" for the coming options, since there's no need to deviate from default options until you are asked to select the packages as shown below.
5. Select the c, c++, f77 compiler packages( within the devel category) and gnu make utility package. These packages may depend on other packages, those must be downloaded. You will be prompted to do download them by the installation wizard.

Yeah yeah, it takes some time to download!

6.Once you finish the downloading, run the setup.exe file again and use the "Install from local directory". You will be asked to show the directory where you have downloaded it. (this folders name is odd. something like "ftp%3a%2f%2fcygwin.mirrors.pair.com%2f")

7. Then you should go next and next until it is finished!! You could see the start Cygwin by double clicking the icon on the desktop.

8. "g++ --version" would show you the gcc version installed. likewise check other installations you mentioned in the package selection (number 5).



9. Enjoy what you have done :)




Nov 12, 2010

Adhoc On demand Distance Vector (AODV) modified protocol implementation in c

This a partial AODV (modified) implementation in c (code). 


The flow diagram is based on RFC 3561 and drawn by one of my colleague Madhusanka. The code works for HELLO packet generation and receive for a zigbee node. However, the whole skeleton is coded, its not tested for other flows other than hello flow. The code was tested with Digi's Xbee module. :)

Jun 27, 2010

Resolved phpmyadmin redirection error in WAMP

I am new to PHP. When I tried to install WAMP in my machine, it worked fine. That is the installation process was smoothly carried out. However, when I started the wamp server, the tray icon showed something went wrong. 2/3 out of half circle icon was yellow and the rest was white.  For your information : the environment I used was Vista home premium 32bit. After googling, I found out that the "listening port " of Apache HTTP server should be set to 8080 (something other than 80, which is the default). It could be done as follows.

 


However, surprisingly, phpmyadmin link on the quick launch tray is not working when the port is changed to 8080. In order to use that link, change the wampmanager.tpl file's "${c_navigator}"; Parameters: "http://localhost:8080/phpmyadmin/"; line so that after localhost ":8080" is added. Now it should work fine.

 Now, when you select phpmyadmin on the tray menu, it should work fine.