Need to ship your Qt app for Mac? Bundle it up!

I’m contributing some code and GCC-CPU-time to PhantomJS. It’s a brilliant idea and I hope it will grow, maybe with some help from me as well. I have recently spent some time working out how to go from a ā€œcompiled from sourceā€ version, to generate a shippable executable. For Mac, in my case. a ā€˜cute’ bundle I’ll explain how to bundle up your Qt based application, so that you can ship it. PhantomJS will be my reference example. ...

April 27, 2011 Ā· 4 min Ā· 732 words

Snippet: fix Screen Orientation in a Qt/S60 app

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. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #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](http://discussion.forum.nokia.com/forum/showthread.php?t=164499).</caknappui></aknappui></aknenv></eikappui></eikenv>

August 11, 2009 Ā· 1 min Ā· 116 words

Android Dev Phone 1: Official Updates

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 ;) ...

April 5, 2009 Ā· 1 min Ā· 81 words

Personalize your $PS1

Fancy $PS1 setting The code to make the Bash prompt looks like mine is (~/.bashrc): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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.

April 21, 2008 Ā· 1 min Ā· 63 words

Speed up Mail.app

+ + vacuum BRRRRRUUUUUUUUUMMMMM! Anyone that use Mail.app (the ā€œofficialā€ mail client on [en: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. ...

March 5, 2007 Ā· 2 min Ā· 231 words

How to Make Mac Icons

Are you curious about ā€œhow to make icons for Macā€? I’m. And TUAW have something for someone interested in the same thing. A few weeks ago, Matthew Cone showed us how Macinstruct’s beautiful icons, courtesy of the talented Gary Gehiere, came to be (http://www.macinstruct.com/node/40). In that article, you were shown the beginning stages of icon design – how the meaning of an idea is distilled down to a few carefully placed pixels. The end result, of course, is seen here - on Macinstruct - in the icons scattered throughout the website. ...

February 26, 2007 Ā· 1 min Ā· 187 words

XCode meets Mono

And… seems to be a nice meeting. ;) After a lot of development, the comunity surrounding the project realeases last stable version 1.2.3.1 of Mono. What about [en:Mac_OS_X|Mac OS X]? Here is a dedicated page on the official wiki of Mono. And, in particular, I’m happy to highlight a tutorial/howto about XCode and Mono integration: CSharpPlugin. I know that [en:Mono_(software)|Mono] is the open-source implementation of [en:.NET_Framework|.Net] (started by [en:Novell]), and that I hate [en:Microsoft|M$], but… I can’t hate a framework. It’s like to hate the [en:Plutonium] because we make the [en:Atomic_Bomb] with it! ;) ...

February 21, 2007 Ā· 1 min Ā· 146 words

Learn Cocoa: a new howto

TUAW today highlights this new Tutorial about Cocoa: Learn Cocoa (part II). Some people on TUAW say that: … there wasn’t actually any coding involved… But it was about the first part, that is ā€œintroductiveā€. In this second part seems that things are changing. I haven’t readed yet to give a valutation; but I’ll do… I promise. Stay tuned.

February 19, 2007 Ā· 1 min Ā· 59 words

Teoria dell'Informazione: appunti di Nemo

Il mio amico Nemo, che ha appena finito il suo ultimo esame, [en:Information_theory|Teoria dell’Informazione], ne ha resi disponibili gli appunti da lui stesi: un PDF che, per il fatto che ĆØ scritto in [en:LyX], ĆØ anche piacevole alla lettura, oltre che importante per l’argomento trattato. Un grazie da tutti gli studenti (ma non solo) credo gli sia dovuto ;) .

January 27, 2007 Ā· 1 min Ā· 60 words

M. Spencer present AsteriskNOW

Mark Spencer, developer of many Open Source projects like Gaim and, obviously, Asterisk, and founder of Digium, shows us how much simple is to start a PBX with AsteriskNOW!. I spoke about AsteriskNOW here, at the time of its presentation. Source, OSSBlog.

January 17, 2007 Ā· 1 min Ā· 42 words