Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Method overloading in Java

In Java you can declare methods with the same name in a class, but each method must contain different sets of parameters. In other words, this is called Method Overloading. public class Calculadora{ public int soma(int valor1, int valor2){ return valor1 + valor2; } public float soma(float valor1, float valor2){ return valor1 + valor2; }

Standard

Debian Squeeze Terminal (SSH) with Colored Text

Unlike Ubuntu, Debian 6 Squeeze doesn’t have the colored text in the Terminal or SSH of folders, files and so on… Doing a bit of research, I found the following solution: 1 – Edit the file /etc/bash.bashrc   $ vi /etc/bash.bashrc 2 – Add the following code to the file: # System-wide .bashrc file for

Standard

Learn how to enable Mod_rewrite in Apache

The Apache mod_rewrite module allows you to rewrite URLs so that they don’t point to the real address of the file and the real name of the file. This is often used to create so-called Friendly URLs.   To activate the mod_rewrite module just use the following command: $ a2enmod rewrite   Now edit the

Standard

Upgrading Debian 6 (Squeeze) to Debian 7 (Wheezy)

A month ago Debian 7.0 (Wheezy) Stable was released. Today I will teach you how to upgrade Debian 6 (Squeeze) to Debian 7 (Wheezy). This tutorial works on 32 / 64 bit architectures.   Open your list of repositories: # vi /etc/apt/sources.list Remove all Squeeze repositories and add the repositories for Wheezy: deb http://mirrors.kernel.org/debian/ wheezy

Latest news

Latest news directly from our blog.