«Consider yourself Perfectible makes you Perfect!»
Posts tagged howto
Snippet: fix Screen Orientation in a Qt/S60 app
Aug 11th
I follow the Qt/S60 Mailing list, that is turning out to be a very interesting and active ML, and the Qt Labs blog, always full of very good code, written directly by the guys of Qt Software. I thought could be nice to start to post some of the stuff I’m learning.
#include <eikenv .h>
#include <eikappui .h>
#include <aknenv .h>
#include <aknappui .h>
// ...
// lock orientation
CAknAppUi* appUi = static_cast<caknappui *>( CEikonEnv::Static()->AppUi() );
if ( appUi ) //< Actually, this will always pass. It's a "static_cast" after all...
{
appUi->SetOrientationL( CAknAppUi::EAppUiOrientationPortrait );
}
// ...
Today’s source is: Nokia Forum.
Android Dev Phone 1: Official Updates
Apr 5th
For the once of you that tried “home made ways” to update their ADP1, like my previously published how-to, this news can be interesting.
Google and HTC finally managed to push-out an official page on the HTC site, to explain step-by-step how to update firmware and baseband of the device.
I just did it, having a very pleasant and straightforward experience.
The phone seems to be way more stable, bug-free and the battery lasts for more then 50 seconds
Enjoy!
Personalize your $PS1
Apr 21st

Mine looks like this.
A very patriotic one, isn’t it?
The code to make the Bash prompt looks like mine is (~/.bashrc):
case $TERM in
xterm*|rxvt*)
TITLEBAR='[\033]0;\u@\h:\w\007]'
;;
*)
TITLEBAR=""
;;
esac;
PS1="${TITLEBAR}\n[\033[0;0m][\033[0;32m]time: \
[\033[0m][\033[1;31m]\t[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]host: [\033[0m]\
[\033[1;31m]\h[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]user: [\033[0m][\033[1;31m]\u\
[\033[0m][\033[0;0m]]-[[\033[0m][\033[0;32m]bash: \
[\033[0m][\033[1;31m]\v[\033[0;0m]]\n\
[\033[0;0m][[\033[0;32m]cwd: [\033[0m][\033[1;31m]\w\
[\033[0m][\033[0;0m]]# "
Thanks to Bash Prompt HOWTO.
Speed up Mail.app
Mar 5th

+

+
vacuum=
BRRRRRUUUUUUUUUMMMMM!
Anyone that use Mail.app (the “official” mail client on Mac OS X) knows that the greater mailboxes become, the slower Mail.app goes. I don’t know how many email I have, but the oldest is from the 2002 (I have cutted older because they became useless).
Today, I found an interesting link on TUAW: A faster way to speed up Mail.app on Hawk Wings.
Starting from that tips, I have expanded it to vacuum every table in the SQLite3 database used from Mail.app to index our emails.
Continue to see the mini-howto. More >
