terça-feira, novembro 18, 2008
quarta-feira, novembro 05, 2008
quarta-feira, outubro 22, 2008
domingo, setembro 28, 2008
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.
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.
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
Assim é possível aproveitar a famigerada tecla Caps Lock para alternar entre os layouts. Tem quebrado o galho até agora.
setxkbmap -model abnt2 -layout 'ru(phonetic),br(abnt2)' \
-option grp:caps_toggle
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.
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:
My dirty workaround was to append all needed lines in a table and then dump all these lines with only one call of print().
$ rpm -q --qf '%{VERSION}\n' --specfile teste.specNote 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.
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
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:I think make(1) is specially good for those scripts that will be called directly from the command line.Because make is the only tool that fulfills all of these requirements in its default state, it was chosen as the basis for ISconf.
- Deterministic Ordering
- Failure on error
- State maintenance
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.
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
Assinar:
Postagens (Atom)





