April 2008 Archives
2008-04-21
when a nerd irc addict gets high...
17:15:38 [Users #gentoo-vim]
17:15:38 [@hawking]
17:15:38 -!- Irssi: #gentoo-vim: Total of 1 nicks \
[1 ops, 0 halfops, 0 voices, 0 normal]
17:16:05 -!- Channel #gentoo-vim created Mon Apr 21 17:15:34 2008
17:18:11 -!- Irssi: Join to #gentoo-vim was synced in 196 secs
20:05:41 <@hawking> I'm so lonely!
20:06:01 * hawking stabs hawking
23:40:40 <@hawking> hey there
23:40:57 <@hawking> what's up charlie? :)
23:41:01 <@hawking> you know you're high!
23:41:10 <@hawking> and it's hard to speak when you are :-]
23:41:27 <@hawking> set the controls for the heart of the sun!
23:41:58 <@hawking> oh sacrifice me to death for pink floyd!
23:42:04 <@hawking> aaaa aaaa
23:42:07 <@hawking> aaaa aaaa
23:42:12 <@hawking> set the controls for the heart of the sun...
23:42:46 <@hawking> it's also very hard to speak english, when you're \
... erm .. high :)
23:42:54 <@hawking> so!
23:43:03 <@hawking> see emily play!
23:46:01 * hawking is listening to Pink Floyd - See Emily Play
23:46:40 <@hawking> arghh for a second I lost ncmpc :) couldn't find it \
for 3 minutes :-]
23:47:19 <@hawking> there's no other day
23:47:29 <@hawking> :) ( I can't speak so I decided to sing! )
23:47:38 <@hawking> emily++
23:48:55 <@hawking> emily ftw!
23:48:58 * hawking hugs emily
23:49:09 * hawking is listening to Pink Floyd - \
The Happiest Days Of Our Lives
23:49:21 <@hawking> ouch! not now! change it!
23:49:40 <@hawking> just a right song for the moment!
23:49:52 * hawking is listening to Pink Floyd - Learning To Fly
23:50:08 <@hawking> nice one indeed, quite relaxing.. lovely song!
23:50:45 <@hawking> I'm so relaxed, I can't type
23:51:12 * hawking grins
23:51:40 * hawking waves bye to channel
23:51:44 <@hawking> *shrug*
2008-04-20
vim and lzma
To edit .lzma files with vim add the
following snippet to your vimrc:
augroup lzma
au!
au BufReadPre,FileReadPre *.lzma setlocal bin
au BufReadPost,FileReadPost *.lzma call gzip#read("lzma -d")
au BufWritePost,FileWritePost *.lzma call gzip#write("lzma")
au FileAppendPre *.lzma call gzip#appre("lzma -d")
au FileAppendPost *.lzma call gzip#write("lzma")
augroup END " augroup lzma
Note you need to have lzma-utils
, not lzma, for
this to work.2008-04-18
Latest news from Gentoo/Python
I've done some major work under
dev-lang/python today. I've backported many patches from upstream.
Here is a list of issues fixed:
- Buffer overflow in zlib extension, CVE-2008-1721.
Gentoo bug: 217221
Upstream bug: 2586
Upstream fix: r62235
Fixed Gentoo/Python versions: 2.3.6-r5, 2.4.4-r10, 2.5.2-r1 - PyString_FromStringAndSize() unsafe
Upstream bug: 2587
Upstream fix: r62262
Fixed Gentoo/Python versions: 2.3.6-r5, 2.4.4-r10, 2.5.2-r1 - distutils doesn't respect CXXFLAGS
Gentoo bug: 145206
Fixed Gentoo/Python versions: 2.4.4-r10, 2.5.2-r1
Thanks to Mark Peloquin for the patch. - Thread unsafe file objects
Upstream bugs: 595601, 815646
Upstream fix: r62195
Fixed Gentoo/Python versions: 2.5.2-r1 - a bunch of infinite C recursions
Upstream bug: 1202533
Upstream fix: r58032
Fixed Gentoo/Python versions: 2.5.2-r1
I've also added wininst USE flag fixing bug 198021 and converted nothreads and nocxx USE flags to threads and cxx adding USE defaults. The only issue left is internal build of libffi - bug 209673 - which should wait until some issues about libffi is clarified.
If you're using a python extension written in C++ like wxpython, reemerge it to make use of your CXXFLAGS.
This is all for now. Have a nice weekend :-)
2008-04-06
viewing man pages with vim
There are two ways to use vim to
display man pages. The first one is using vimmanpager and the
second one is using the :Man command from within vim. Today I fixed
bug
212844 which was a problem about vimmanpager and colour codes.
You'll have to reinstall vim to get the updated vimmanpager.
To use vimmanpager as your default man pager build vim with vim-pager USE flag and set the environment variable MANPAGER to vimmanpager.
For those who want to use the command :Man from within vim, here is a trick to get things right. Add the following lines to your vimrc:
Happy vimming :-)
To use vimmanpager as your default man pager build vim with vim-pager USE flag and set the environment variable MANPAGER to vimmanpager.
For those who want to use the command :Man from within vim, here is a trick to get things right. Add the following lines to your vimrc:
" make :Man command avaliable source $VIMRUNTIME/ftplugin/man.vim " Default MANPAGER vimmanpager doesn't play well " with the :Man command and we don't want to see raw colour codes " so we use sed to strip them. let $MANPAGER = "sed -e 's:\\x1B\\[[[:digit:]]\\+m::g'"
Happy vimming :-)
2008-04-04
back
After a while, I'm back to blogging
and gentoo :). I was in the hospital for 10 days 2 weeks ago. I'm
diagnosed with dissociative
identity disorder. Currently I'm using olanzapine to keep
myself in reality and sertraline to have a
good mood. I stopped school until september. I'll spend this time
doing my usual gentoo work and reading some books which I couldn't
read due to lack of time.
I'm slowly recovering and started to commit fixes to our CVS. I'm taking things slow though. Fortunately dev-zero is back and lordvan requested to take care of twisted packages.
I've updated my blog and added haloscan comment support and buttons to ease submitting to digg, del.icio.us, furl, reddit, slashdot and stumble upon.
This post is meant as an explanation for my slacking in the last months :).
I'm slowly recovering and started to commit fixes to our CVS. I'm taking things slow though. Fortunately dev-zero is back and lordvan requested to take care of twisted packages.
I've updated my blog and added haloscan comment support and buttons to ease submitting to digg, del.icio.us, furl, reddit, slashdot and stumble upon.
This post is meant as an explanation for my slacking in the last months :).
