Politreco

by Lucas De Marchi
RSS icon Home icon
  • Brasil x Holanda

    Brasil perdeu. Infelizmente estamos fora da copa.

    O Juca Kfouri resumiu praticamente tudo o que eu acho desse jogo. Só pra complementar: o time de laranja era uma equipe de teatro ou de bonecas?

  • Now, officially an EFL developer

    Last week I was officially added to EFL developers list. After contributing some patches to eina, edbus, elementary and E17 (especially to connman module), Gustavo Barbieri, who is also my boss at ProFUSION, added me to developers list giving me commit rights on EFL svn.

    He said me some weeks ago that the only thing missing to add me as developer was that I’d have to use E as my window manager. Fair enough. If one wants to be a developer of a certain program, it’s better to first be an active user. So, last Friday I wiped out my Gnome and started using E17 as my default window manager. If you don’t know E, you should check its site. It’s a lightweight Desktop Environment designed on top of EFL, the Enlightnement Foundation Libraries.

    I don’t think the current theme is that good, but I’m getting used to it. Hopefully, it will be replaced some time soon. Below, my current desktop with an animated wallpaper with a clock:

    Enlightenment

  • Linux Collaboration Summit 2010

    And this was the Linux Collaboration Summit 2010:

    Linux Collaboration Summit 2010 from Kenny Moy on Vimeo.

    I’m appearing on this video exactly at 2:00 :-D . After it shows Google giving Nexus One phones to everybody. Really nice.

  • Embedded Linux Conference 2010

    So, today was the last day of the Embedded Linux Conference. Now, I’ll be here in USA for the Linux Collaboration Summit. It was really cool and it was amazing to meet people you are only used to chat, exchange some emails or that you heard about. Just to name some: Steven Rostedt, Greg Kroah-Hartman, Frank Rowand, Mike Anderson, Andrew Morton, Jon Corbet and others. I was really impressed too seeing Rostedt programming or Greg answering emails. What a great guys

    And yesterday I presented my work, talking about the optimization of the Linux scheduler for soft real-time when running on multi-core architectures. I must admit I was a bit nervous, but it seems that people liked it. Following some pictures:

  • Banco do Brasil + Linux 64 bits

    Faz 1 mês mais ou menos que liguei no Banco do Brasil reclamando que a “solução de segurança” do site deles não estava funcionando no meu Linux 64 bits. Sem grandes surpresas, depois de me perguntarem se eu tinha a VM java da sun instalada, versão, etc, eles me passaram para o suporte de segundo nível. Pediram o meu telefone, dizendo que entrariam em contato (isso foi no sábado).

    Logo na segunda-feira de manhã me ligaram e após mais um tempo conversando, ele disse: “o problema é que a nossa solução de segurança não é homologada para a jre 1.6. Acontece que em algumas plataformas ela funciona, mas não é garantido. A gente sabe que em Linux 32 bits funciona, mas a jre 1.5 é que é oficialmente homologada”. Então eu tinha duas opções: ou instalar a versão 1.5 ou rodar um browser 32 bits. Felizmente no meu sistema, archlinux, já tem um pacote firefox32 que faz tudo o que preciso e foi o a solução que adotei. Até hoje.

    Hoje quando fiz meu usual “sudo pacman -Syu” para instalar atualizações de todos os pacotes, vi que tinha uma atualização da jre para ser feita: jre-6u18-2. Aí pensei… quem sabe nessa versão mudou alguma coisa que fez funcionar o applet do BB? Sem muitas esperanças, abri o site no chromium e para minha surpresa, funcionou! Abri no Firefox, e funcionou também. Pra tirar a dúvida, fiz o downgrade para a versão anterior do java, jre-6u17-1. Abri novamente e continuou funcionando. Logo, não foi causada pela atualização da VM, mas sim por alguma mudança que o pessoal do Banco do Brasil fez. Não sei se eles chegaram a homologar a versão 1.6 da JVM (o que já estaria mais do que na hora), só sei que agora funciona com Linux 64 bits.

    Felizmente agora posso acessar a minha conta no Banco do Brasil sem precisar do browser 32 bits. Já estou removendo-o. Deixe seu comentário pra eu saber se funcionou pra você também (inclusive aqueles que usam FreeBSDs e outros unixes).

  • Amazing kernel related blog

    Today while reading “posts” on Buzz and digging in my RSS reader, I found this blog: http://smackerelofopinion.blogspot.com/ made by an ubuntu engineer. How many amazing posts there are on this blog. Particularly interesting is the one about ACPI Debugging and the other about perf, the tool I posted about some days ago (although it covers just a tiny amount of things this tool is capable of).

    When I have some spare time I’ll try to use that first post to debug the ACPI on my buggy asus laptop, where temperature goes sometimes as high as 90 °C. Last year I tried to adjust the hysteresis curve of the fan control in order to have a cooler laptop but had no success on it.

    PS.: I wished a day had 48h to be able to read all the cool stuff out there

  • Pescaria 2010

    Final de semana pra relaxar com a família. Seguindo a sugestão de Ataíde e Alexandre, fomos pescar. Que pena que o meu peixe de 12kg acabou escapando. Algumas fotos:

    Respiração

    Peixão

    Meu pai pegando um peixe

    Mais fotos em: http://picasaweb.google.com.br/lucas.de.marchi/Pescaria?feat=directlink

  • Stripping perf out from kernel source

    You may have heard about perf, a tool made by Linux kernel developers to help debugging, benchmarking and profiling.

    The problem is you have to download the whole kernel source in order to compile perf. If you are not used to follow kernel developping, most likely you will not have its source. But it’s still possible to compile perf.

    As I’m helping to maintain perf package in Archlinux, I made the following script to strip perf from a given kernel version:

    #!/bin/bash
     
    function usage() {
    	cat - <<EOF
    USAGE:
    	make-perf-util.sh git-tag-version
     
    EOF
    }
     
    function die() {
    	echo -e "ERROR\n\tSee usage\n"
    	usage
    	exit 1
    }
     
    VERSION=$1
    BASENAME=perf-util
    NAME=$BASENAME-$VERSION
    PKGNAME=$NAME.tar.bz2
     
    if [ $# -ne 1 ]; then
    	die
    fi
     
    git checkout $VERSION || die
    [ -a $NAME ] && rm -rf $NAME
     
    cd tools/perf && make clean
    cd -
     
    rsync -Ra tools lib include/linux arch/x86/include/asm include/asm-generic \
              --link-dest=. $NAME
    tar -cjf $PKGNAME $NAME
    rm -rf $NAME
     
    echo "created $PKGNAME"

    This script works fine with latest 2.6.33 kernel. Regularly I’m uploading to this site the stripped version of perf. The latest one, you find here.

  • Mais um infeliz cliente da Telefônica

    É impressionante como a Telefônica pode ser uma operadora tão ruim. Não bastasse ser ruim e cara, você fica preso a ela por diversos motivos. Explico: tentando diminuir os gastos da linha telefônica, hoje liguei lá para contratar uma segunda linha telefônica, mas do tipo Linha Lazer. A intenção era começar a usar essa segunda linha só para o speedy e depois migrar (usando a portabilidade numérica) a outra linha para uma operadora melhor (e mais barata, muito mais barata).

    A diferença de assinatura entre a Linha Clássica, que temos agora, contra a Linha Lazer: R$ 40,35 contra R$ 14,90. E todos os outros serviços (em ambas) são mais caros do que no Livre.

    Depois de passar todos os documentos pedidos, repetir e repetir mais uma vez, a atendente tentou empurrar a Linha Clássica pra mim. Expliquei que queria a Linha Lazer, e não a Clássica. Sabendo que a gente já tinha uma outra linha (ela tinha perguntado antes), disse que a Linha Lazer não estava disponível para a minha região. Mentira! Aposto que se não tivéssemos nenhuma linha não teríamos problema em contratá-la.

    Graças à magnífica privatização do setor de telefonia no Brasil, ela é a única provedora de internet banda (quase) larga por aqui. Não fosse isso, eu já teria cancelado minha linha. Sendo isso, penso seriamente em cancelá-la de qualquer jeito e ficar sem internet mesmo, pelo menos por um tempo.

    Alguém tem sugestão?

    PS.: Não é que descobri que tem gente na mesma situação que eu?

  • Coming back, with git tips

    So, it has been some months I last wrote on my blog. Not because I don’t have things to write, but because sometimes I’m too lazy do empty my “queue of things to write about”. Nothing better than start with one thing at a time.

    Since january I’m working at ProFUSION. As before when I was mainly developing for Linux kernel and finishing my thesis (@ USP / Polimi), I’m using git a lot. Even in projects in which upstream is using a centralized approach like subversion, I simply can’t live without a local tree and thus, git. So here I’ll post somethings I’ve been using:

    Read the rest of this entry »