dpkg error: subprocess installed post-removal script returned error exit status 2

When trying to uninstall nvidia-installer-cleanup, the error info show up:

dpkg: error processing glx-diversions (--remove):
subprocess installed post-removal script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

The solution to this is:


Upgrade from Debian stable to testing version

I found that sciteproj is a good thing, but It's only in the testing repo for Debian.

After read the article "5 reasons why Debian Unstable does not deserve its name"(http://raphaelhertzog.com/2010/12/20/5-reasons-why-debian-unstable-does-...)
I decide to "Upgrade" my stable Debian(squeeze) to the testing version on my laptop:

Change the content of /etc/apt/sources.list from


Acer doesn't provide technical support for my Linux system

I asked the Acer support center to provide some driver for my Debian system, this is their answer:

Thanks for using Acer Product.
About your question:
Very sorry~ Linux is open source OS(e.g public OS, Free OS)
Acer does not provide technical support for Linux, we suggest you to search Linux driver using Baidu.

If you have other questions about our product, please contact us again.
Acer Support Center



Arrived Shenzhen, so did the rain
Maybe because of the rain, the sky looks quite low, and blue

I kind of yearn the spring and autumn in Beijing, where in the spring, the catkins flying all the way in the sky makes me feel sort of absentminded; while in the autumn, the big trees in the suburbs begin to drop their leaves without a seemingly end, the poetic imagery in it can get me excited with goose bumps.


How to ignore all the files under tmp and cache dir in svn?

The key factors are:
1,You have to set this by svn:ignore property, either by svn propset or propedit
2,You need to set this settings for each object to its parent folder which has to be alredy added into the svn repository(e.g versioned)

The steps could be:
1, cd /path/to/tmp
2, svn propedit svn:ignore .
3, By command in step 2, an editor will be opened awaiting ignore list to be typed in
4, Simply type * into it
5, save and exit
6, svn commit -m'~ ignore files under tmp dir'







Blur - Tender

Tender is the night
Lying by your side
Tender is the touch
Of someone that you love too much
Tender is the day
The demons go away
Lord I need to find
Someone who can heal my mind

Come on, Come on, Come on
Get through it
Come on, Come on, Come on
Love's the greatest thing
Come on, Come on, Come on
Get through it
Come on, Come on, Come on
Love's the greatest thing
That we have
I'm waiting for that feeling
I'm Waiting for that feeling
Waiting for that feeling to come


Create hidden zf form element and add validator for unsigned float field

Create hidden zf form element
Default hidden element created by zend_form are often come up with its (probably unwelcoming) decorators, eg. its wrappers outside. Those wrappers could break the layout by adding in unnecessary blank lines.
To avoid this, just use the function addDecorators to add a displayNone class name to the element's wrappers:


Confirm password with customized error message using zend_form

Below was my first version of password and confirm password form inputs.

$password = $this->createElement('password','password');
$password->setLabel('Password: *')
->addValidator('StringLength', false, array(6, 60))
$confirmPassword->setLabel('Confirm Password: *')
->addValidator("identical" , true, array('password' ))


Super Key + L to lock the screen on Debian

Run command ccsm by either terminal or application of "run application"(alt + f2). the ccsm is short for CompizConfig Settings Manager.

Enable the "Commands" in the Gerenal tab,

Bind the "Command line 0" with gnome-screensaver-command -l, and bind "Run command 0" with Super key + L




Subscribe to Exooöl RSS