terça-feira, dezembro 04, 2012

Atualização

2012. Continuo morando no mesmo apartamento no centro. Colei grau como Bacharel de Ciência da Computação pela UTP. Troquei de emprego depois de 7 anos na Mandriva. Oficialmente funcionário da Novell Brasil mas trabalhando para o time de meiosuportemeiodesenvolvimento da SUSE. O T-60 já não é mais meu computador principal. Viajei de férias em maio para Londres, Amsterdam, Paris, Berlin, Praga e Frankfurt. Viajei para Paris em julho (pela mdv). Viajei para Praga em outubro (pela SUSE) e durante a mesma visitei Nuremberg, Viena e a Cracóvia. Em casa link óptico da Copel que às vezes chega a 100mbps. Ucraniano IV, russo V, proficiência 0 ainda.

quinta-feira, outubro 01, 2009

Assaltado novamente

Mais um ponto no mapa:



Visualizar Assaltos em um mapa maior

Mais um w200 desapropriado.

quarta-feira, março 18, 2009

terça-feira, março 10, 2009

Awk

O mundo talvez fosse um pouco melhor se muitos scripts shell tivessem sido escritos em awk.

quarta-feira, fevereiro 04, 2009

Diversão do dia: ctrl-shift-u em GTK

Hoje precisei digitar "И́", que é um caractere cirílico com acento, usado para ajudar na pronúncia de textos didáticos. Acabei conhecendo um recurso interessante.

Inicialmente eu estava usando caracteres latinos (xunxo!) nos casos de á, é, í. O problema foi quando precisei escrever "Добри́день". Então lembrei da tal combinação de marcadores diacríticos (ou da maneira que seja isso em português), e não achei em Unicode caracteres diacríticos précombinados para cirílico.

Blablablabla aqui.

Eis que então achei um atalho dos widgets de GTK muito útil: ctrl-shift-u. Ao usar esse atalho aparece um "u" sublinhado e então é só digitar o código. No caso digitei И e então u0301e problema resolvido*.

* A solução poderia ter sido simplesmente destacar o caractere desejado com negrito, pois era um texto de Wiki. Além disso poderia ter usado a própria linguagem da ferramenta de Wiki para inserir o marcador unicode...

Algumas horas mais tarde noto uma característica interessante desses marcadores diacríticos: é possível escrever o texto todo sem os acentos, então no final copia-se o marcador para a área de transferência e assim é possível ir colando os acentos "sobre" os caracteres necessários, e mesmo sobre letras/caracteres diferentes.

terça-feira, janeiro 20, 2009

Férias

Rotulando: as primeiras férias.

terça-feira, novembro 18, 2008

quarta-feira, novembro 05, 2008

quarta-feira, outubro 22, 2008

MEPA

Um tosco interpretador para a tal MEPA (fantástica máquina para a linguagem Pascal).

domingo, setembro 28, 2008

Relocation

Some changes:


sexta-feira, setembro 05, 2008

And now bzr2hg

In a hurry to have a code converted to hg, but without enough time to debug the broken bzr support on tailor, I ended up changing the bzr2svn script to do the same for hg. bzr2hg.py here. Crappy as his ancestor.

quarta-feira, julho 16, 2008

bzr2svn tosco

Patching revisions from a bazaar branch to a subversion working copy and commiting them one by one. This only what this script does.
Of course you must have tried this one and also this one beforehand.

quinta-feira, abril 03, 2008

Working on pybugz

Just for the record: I am keeping a bzr branch with changes/fixes on pybugz, which is a Python command-line interface to Bugzilla. These are mostly fixes to work on Mandriva Bugzilla and to make it more API-friendly", most of them will be dropped when submitting upstream.

The branch is here.

Update 4/4/2008: OMG! I was at least a year out of date. pybugz moved to Google Code and their are already in 0.8.0! The funny thing is that they are also using YAML as the configuration format.

quinta-feira, fevereiro 21, 2008

Agora tenho um celular!

Eis que comprei meu primeiro celular ontém. Um W200i. Atualmente o telefone com walkman mais barato e simples por aí: R$200.

terça-feira, janeiro 29, 2008

Usando layout russo fonético em teclado abnt-2


setxkbmap -model abnt2 -layout 'ru(phonetic),br(abnt2)' \
          -option grp:caps_toggle
Assim é possível aproveitar a famigerada tecla Caps Lock para alternar entre os layouts. Tem quebrado o galho até agora.

Não esqueça de usar br(thinkpad) caso tenha a sorte de ter um T60 brasileiro.

Atualização (jun/2008): agora virei preguiçoso e uso a ferramenta de gerenciar layouts de teclado do KDE. Usando ctrl-alt-k posso alternar entre os teclado ucraniano fonético (que era o que realmente interessava) e o br(thinkpad). Um pouco mais fácil.

Atualização (set/2008): caso precise usar o layout ucraniano fonético no Vindows (por não ter um Pendriva para quebrar o galho), recomendo este driver.

terça-feira, novembro 20, 2007

Git patch: don't complain about ignored paths in pathspec

This patch does what the title says.

It is far easier for git to know what are the ignored files than to the caller of git to figure out what should not be put in the command line. It makes easier to use git with my scripts.

quarta-feira, julho 25, 2007

Weird behavior of Lua RPM scriptlets

RPM allows packagers to write scriptlets and macros in specfiles using the Lua language. That's a really nice feature but seems nobody is using it and thus it is not being properly tested:
$ rpm -q --qf '%{VERSION}\n' --specfile teste.spec
error: line 8: Unknown tag: ðâ
error: query of specfile teste.spec failed, can't parse
$ cat teste.spec
%{lua: print("Name: foo") }
%{lua: print("Version: bar") }
Release: 1
Group: Foo/bar
License: GPL
Summary: summary
Buildroot: %_tmpdir/%name
Note the unknown tag rpm is complaining about "ðâ", which seems to be gargabage. It happens always when calling print more than once and can't be reproduced with "rpm --eval". Really weird.

My dirty workaround was to append all needed lines in a table and then dump all these lines with only one call of print().

segunda-feira, julho 09, 2007

Some reasons to use (g)make

The following excerpt from the ISconf history describes well why I like make(1) for writing scripts:
Its functionality is dependent on three key features:
  • Deterministic Ordering
  • Failure on error
  • State maintenance
Because make is the only tool that fulfills all of these requirements in its default state, it was chosen as the basis for ISconf.
I think make(1) is specially good for those scripts that will be called directly from the command line.

sexta-feira, junho 01, 2007

svnperms.py to query LDAP groups

Just to be make it searchable: there's one modified version of Gustavo Niemeyer's svnperms.py that can retrieve from LDAP those groups referred in svnperms.conf ACLs. It was requested and/or specified by Andreas Hasenack and I wrote the code (you can blame me for the bugs).

Here: http://svn.mandriva.com/svn/soft/build_system/svnperms/. There's one bzr branch with more detailed history here. You can also read the README.

quarta-feira, janeiro 17, 2007