Archives

You are currently browsing the archives for the category Uncategorized.

Posted July 18th, 2008 in Uncategorized

Teddy brincando (destruindo) um colar de luau.


Ele está naquela fase de morder tudo, inclusive eu.

Adicionar para seus favoritos do Technorati

Eu Podia Tá Matando versus Nerdproud

Como já acontece tradicionalmente na Taça Pet, os dois piores times do curso de Computação UFC se enfrentam em uma partida memorável. Esse ano nosso time, Eu Podia tá Matando, perdeu primeiro de 2 a 0 para o Nerdproud e depois perdeu de 7 a 0 para o SECO. Pelo menos esse ano eu fiz um gol.


Vídeo original em melhor resolução gol_silveira.mov.

Na nossa avaliação foi um resultado muito bom esse ano. Não tivemos nenhuma baixa e ninguém foi teve que ir pro hospital. Além disso tivemos a maior platéia de todos os tempos, deviam haver umas 50 pessoas assistindo o jogo. Definitivamente um espetáculo.

Só faltou mesmo para sermos os campeões:

  • Um melhor preparo físico.
  • Mais dois jogadores reservas.
  • Treinarmos algumas partidas antes do jogo oficial.
  • Um juiz imparcial, ou pelo menos parcial para nosso lado.
  • Não termos nosso jogo marcado para depois do almoço.
  • Um uniforme oficial.
  • Um melhor ataque.
  • Uma melhor defesa.
  • Um melhor meio de campo.
  • Mais domínio de bola.
  • Mais pontaria para o gol.

Tirando isso, estamos muito bem.

Até ano que vêm tem mais.

Adicionar para seus favoritos do Technorati

Posted July 2nd, 2008 in Uncategorized

Click to zoom.

From Gamesuy.blogspot.com.

Adicionar para seus favoritos do Technorati

My article Trying to corrupt data in a ZFS mirror (also in portuguese here) won the second prize in the OpenSolaris Student Reviews Contest. My colleague Jonas Dias also won.

Thank you guys.

Adicionar para seus favoritos do Technorati

Posted July 1st, 2008 in Uncategorized
import java.util.Calendar;

public class Main {
    public static void main(String[] args) {
        Calendar today = Calendar.getInstance();
        System.out.println("Today is  " + today.getTime());
    }
}

In this simplest example of Calendar, the output would be

Today is : Tue Jul 01 10:56:14 BRT 2008

In the next example how to get information about the day inside the year, month and week.

import java.util.Calendar;

public class Main {
    public static void main(String[] args) {
        Calendar today = Calendar.getInstance();
        int dof = today.get(Calendar.DAY_OF_YEAR);
        int dom = today.get(Calendar.DAY_OF_MONTH);
        int dow = today.get(Calendar.DAY_OF_WEEK);
        System.out.println("Today is the " + dof +"º day in this year,");
        System.out.println("the " + dom +"º day in this month");
        System.out.println("and the " + dow +"º day in this week.");
    }
}

The output could be

Today is the 183º day in this year,
the 1º day in this month
and the 3º day in this week.

The next example is about how to add (and subtract) a duration from a Calendar.

import java.util.Calendar;

public class Main {
    public static void main(String[] args) {
        Calendar today = Calendar.getInstance();
        System.out.println("Today is " + today.getTime());

        Calendar yesterday = (Calendar)today.clone();
        yesterday.add(Calendar.DATE, -1);
        System.out.println("Yesterday was " + yesterday.getTime());

        Calendar tomorow = (Calendar)today.clone();
        tomorow.add(Calendar.DATE, 1);
        System.out.println("Tomorow will be " + tomorow.getTime());
    }
}

A typical output would be

Today is Tue Jul 01 10:44:18 BRT 2008
Yesterday was Mon Jun 30 10:44:18 BRT 2008
Tomorow will be Wed Jul 02 10:44:18 BRT 2008

Adicionar para seus favoritos do Technorati