Nobody was Born with Linux Knowledge

To content | To menu | To search

Monday 26 September 2011

Search for telephone numbers in Mozilla Thunderbird Address Book

Many thanks fly to Abhijit for having spotted a way to search for telephone numbers in Mozilla Thunderbird Address Book. You can read more on his blog at: http://ifacethoughts.net/2010/08/09/configuring-thunderbirds-addressbook-search

In short you need to access the config editor and look for the string:

mail.addr_book.quicksearchquery.format

the string content feature the 'attr' fields that are searched by the quick search bar (you may type 'attr' to see all the possible fields.

e.g. my string content is:

?(or(PrimaryEmail,c,@V)(DisplayName,c,@V)(FirstName,c,@V)(LastName,c,@V)(CellularNumber,c,@V)(HomePhone,c,@V)(Notes,c,@V)(PagerNumber,c,@V)(FaxNumber,c,@V)(WorkPhone,c,@V))

which searches the Primary Email, the Display Name, the Cellular Number, the Home Phone, etc...

Mozilla Thunderbird is such a powerful program! It's users are even more powerful though! :D

Sunday 10 April 2011

Speed up searching in a PDF file

Create and manage an index in a PDF
You can reduce the time required to search a long PDF by embedding an index of the words in the document. Acrobat can search the index much faster than it can search the document. The embedded index is included in distributed or shared copies of the PDF. Users search PDFs with embedded indexes exactly as they search those without embedded indexes; no extra steps are required.
Add an index to a PDF
With the document open in Acrobat, choose Advanced > Document Processing > Manage Embedded Index.
In the Manage Embedded Index dialog box, click Embed Index.
Read the messages that appear, and click OK.
Note: In Outlook and Lotus Notes, you have the option of embedding an index when you convert email messages or folders to PDF. This is especially recommended for folders containing many email messages.
On the readers side Adobe Reader for linux does support such indexes, but unfortunately Evince doesn't yet.

Friday 8 April 2011

Not authorized while trying to add a printer

While trying to add a printer you may get an authorization denial:
Not authorized
The password may be incorrect.
Actually the password is correct, the problem may arise because of either:

a) The root account is disabled. If so type sudo passwd root and then set the root account password first In case you are willing to disable the root account again you may do so this way:  sudo passwd -l root
b) There is that no /etc/cups/passwd.md5 has been created yet.  This is stated in the system log files. To generate this file type sudo lppasswd -a and enter the cups administrator password you like (it can be the same as the root password, but not necessarily).

Monday 22 November 2010

How to Fix linuxQQ from always crashing

QQ protocol support on linux is extremely poor, especially after Tencent (the company running QQ central servers and developing the official program) has decided there should not be any other competing software also on the linux side. The official client is very crappy and outdated though, crashing every now and then. Pidgin/Empathy/Kopete support via telepathy framework has first been blocked via QQ clients version check. The workaround of changing it to QQ2008 started to be sanctioned last year with the complete ban of the QQ account by Tencent. WebQQ, once reachable at http://web.qq.com, has been recently shut down for alleged widespread misuse. The windows client does not work at all using WINE compatibility layer (emulator). The only remaining client is the official linuxQQ client, downloadable at http://im.qq.com/qq/linux/, is stuck at version 1.0 beta1 and is now pretty obsolete being dated january 2009. This results in extremely frequent crashes on Ubuntu linux Lucid 10.04 and Ubuntu linux Maverick 10.10 as well as other recent distributions. Fortunately, a friend of mine has helped me locating an effective workaround that dramatically decreases the number of crashes per session. Basically this workaround consists in exporting a GTK variable in order to force the use of such a toolkit for drawing linuxQQ windows. Open the linuxQQ launcher shell script:
gksu gedit /usr/bin/qq
the file content should look as follows:
#!/bin/sh
cd /usr/share/tencent/qq/
./qq
what you have to do is adding the following line before invoking QQ's binary:
export GDK_NATIVE_WINDOWS=true
Thus, after fixing the file it should look this way:
#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /usr/share/tencent/qq/
./qq
Save, quit, start QQ and have fun typing ??? ???????????????????????? some reference: http://hi.baidu.com/laishch/blog/item/c4a99c3c94cdd9e155e72319.html http://jiangkan2jay.javaeye.com/blog/669203

- page 1 of 3