Skip to main content

Posts

Dropped your iPod/Phone in Water–How to fix it?

How to dry your phone or iPod that is been dropped in water or washbasin. Here are the quick step you can follow to make your phone dry. Before going to the service center, you can try this out as a remedial measure. Sometimes it works perfectly. (you need not even go to the service center for servicing the phone) Step 1: Once the Phone/iPod/iPhone is dropped in water, try to get it back as soon as possible. Step 2: Automatically your phone would have been switched off. Else switch it off immediately as the water should not flow inside the circuit board. (Don’t try to charge your phone also, as it may completely damage the phone) Step 3:  Take a small bowl with rice and keep your phone/iPod inside the bowl containing rice. Rice has the property of absorbing the moisture (no matter how deep the moisture inside the phones). Keep the phone atleast for one full day. Step 4: After a day, you may switch on the phone and see what happens. The success rate for the phone to work perfe...

Installing ns-2.29 in Ubuntu 12.04

Off late, we try to use(install) a old software in a new Operating System for want of backward compatibility or to survey.  This following post shows you how to install ns-2.29 in Ubuntu 12.04. Unlike other ns2 installations, this installation has so many errors, warnings and patchings. Once everything is overcome, ns installs successfully Step 1: Download and untar ns-2.29 from this link  ( http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.29/ns-allinone-2.29.3.tar.gz/download ) Step 2: install the necessary dependancy packages using the command "sudo apt-get install build-essential libxmu-dev autoconf automake" (without quotes). This will install the necessary developmental packages Step 3: Since ns-2.29 is older software, some of the pointer conversion have to be changed inside ns-2.29 Step 4: go to terminal, point to the location of ns-allinone-2.29 using the command "cd ~/ns-allinone-2.29/" and type "./install" Step 5: there may be th...

Network Simulator 2 installation in Fedora 17 (Beta)

Hope you would have tried installing NS2 in Fedora 16. Now here is a new post that you can install ns2.35 in Fedora 17 beta. Install Fedora 17 beta from a DVD and install all the softwares that are coming along with the DVD (Except the Languages). There will be a "Customize now" option will be there during the installation of Fedora, check that and install all the required softwares. Download NS-23.5 from  http://www.isi.edu/nsnam/ns/ Untar the downloaded ns-allinone-xxx.tar.gz file using the command “tar zxvf ns-allinone-2.35.tar.gz” execute the commands one by one as given below cd ns-allinone-2.35 ./install (you may get an error called ~ns-2.35/linkstate/ls.h error in line number 137,  change the following line to                              void eraseAll() { erase(baseMap::begin(), baseMap::end()); } to this line                     ...

Installing ns-2.35 in Ubuntu 12.04 LTS

As you know Ubuntu 12.04 launched on 26th April 2012 and it is a Long Term Support OS.  To install ns2 in Ubuntu 12.04, it refers the same step as done in 11.10 OS.  For new users, here are the steps to install ns2.35 Download NS-23.5 from http://www.isi.edu/nsnam/ns/ Go to terminal and install the necessary updates using the command “ sudo apt-get update ”  (without Quotes) Then install the ns2 required libraries using the command “ sudo apt-get install build-essential autoconf automake libxmu-dev ” (without quotes) Untar the downloaded ns-allinone-xxx.tar.gz file using the command “tar zxvf ns-allinone-2.35.tar.gz” execute the commands one by one as given below cd ns-allinone-2.35 ./install (You get the PATH information if the installation was successful, upon succeeding set the PATH in the relevant file .bashrc) Type ns and see a  % symbol indicates that the installation of ns2 is successful and also try the command  nam so that a network animator ...

How to write a Makefile

Assume there are more number of source files to be compiled using a set of commands everytime is a tedious process. So there is a facility to compile everything at a stretch is by the use of a Makefile. The makefile can be named as either “Makefile” or “makefile”. Let me define four files for my simple application, create a new directory and store all the files given below main.c  (which contains the main program) sum.c (summing function is defined) hello.c (print hello world) function.h (function prototypes are declared) You can download all the files here //function.h int sum(int,int); void print_hello(); //hello.c #include <stdio.h> #include "function.h" void print_hello() { printf("Hello World \n"); } //sum.c #include "function.h" int sum(int a, int b) { int c; c=a+b; return c; } //main.c #include <stdio.h> #include "function.h" int main() { int a=10,b=20,c; print_hello(); c=sum(a,b); printf("The sum of two numbers is %d ...