WP-CLI on Gentoo

Standard

I recently encountered this error when running wp search-replace:

PHP Fatal error:  Call to undefined function cli\line() in …/wp-cli/vendor/wp-cli/php-cli-tools/lib/cli/Table.php on line 107

The FAQ says that you will need to install the php-process package, but there’s no such package nor USE flag in Gentoo. After some digging, I found out that the sysvipc and sharedmem are the USE flags that need to be added.

KMail vs. KPPP

Standard

If you’re using a dial-up connection via KPPP and KMail’s complaining about network connection not being detected, just fire up Akonadi Console and toggle your resources’ states from there. I’ve yet to find the solution for this but this trick should help you get your new mails.

Minimize KDE IM Contacts to System Tray

Standard

It bothers me that KDE IM Contacts logs you out when you close the main window, and there’s no GUI to change this behavior. The “fix” is simple, just edit ~/.kde/share/config/ktp-contactlistrc and change go_offline_when_closing value to false:

[General]
go_offline_when_closing=false

Source: KDE Forums