Hi! My name is João Trindade and this is the web place where I share all of my stuff with the rest of the world.
I am an IT Engineer taking a PhD course at IST, Portugal. My interests in the IT field include Network Management, Project Management, Enterprise Architecture, Free Software and programming in general.
Tagged:  •  

This is an AODV explanation for dummies (yep, that's me).

The Ad hoc On Demand Distance Vector (AODV) routing algorithm is a routing protocol designed for ad hoc mobile networks. It provides both unicast and multicast routing.
It is a reactive routing protocol, meaning that it establishes a route to a destination only when there is a demand for that route.

Let's start the explanation:

Just wish to publicly thank this sir, Alexander Fleming, for his notable discovery.

Tagged:  •  

I've been experimenting with the ns-3 network simulator. They use the Gnu Style indentation, which I normally don't use, but it is really readable.

To use this indentation for C and C++ files in Vim put the following lines in your .vimrc:

  1. function! GnuIndent()
  2. setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
  3. setlocal shiftwidth=2
  4. setlocal tabstop=8
  5. endfunction
  6. au FileType c,cpp call GnuIndent()

Tagged:

It's amazing to say this, but this cheat sheet is one of the most useful things I ever found on the Internet.

Tagged:  •  

Disk space in my Eeepc is a precious resource. This made me not create a swap partition for my ubuntu install.

Unfortunately, and I cannot say that I have not been warned, the kernel does strange things when there is no swap available: throws out-of-memory errors and kills processes which consume large chunks of RAM.

A quick fix to this problem, that has a negligible performance hit on recent kernel versions, is to use a swap file instead of a swap partition.

First create the file. The 512 number is the megabytes the swap file will have. Change to your taste.

  1. dd if=/dev/zero of=/anywhere/anyfile bs=1M count=512

Make the file "swap consumable":

  1. mkswap /anywhere/anyfile

Activate the swap file

  1. swapon /anywhere/anyfile

You may check your total memory now with:

  1. free -m

Syndicate content