Tooltip problem on Firefox 3.5

After upgraded to Firefox 3.5, I found it could not display tooltip correctly, it always displays an empty tooltip.

The way to resolve this problem is to reinstall Google toolbar.

Rebuild Trayicon while explorer crashed

  • Define a  static or global variable: WM_TASKBARCREATED
  • Register window message while program started (usually on handler of WM_INITDIALOG event):
    TASKBARCREATED = RegisterWindowMessage(_T(“TaskbarCreated”));
  • Handle WM_INITDIALOG event, rebuild the trayicon:
    SDK: add a handler on your WndProc function
    MFC: add message mapping, remember using ON_REGISTERED_MESSAGE not ON_MESSAGE, for example

    BEGIN_MESSAGE_MAP(MyDlg, CDialog)
    ON_REGISTERED_MESSAGE(WM_TASKBARCREATED, OnTaskbarCreated)
    END_MESSAGE_MAP()

Dreamhost only support Google Checkout/Money Order

payment.jpg

Seems dreamhost no longer supports credit card or paypal while registerring, and Google checkout do not support China Mainland…

BTW, seems we can not buy Gift Certificate from dramhost panel now.

Lighttpd is light!

Resource Usage

Look at the pink area, after switch to lighttpd from apache, the memory usage had been dropped dowon to 40% as before!

Javascript: add to favorite (compatible with IE & Firefox)

If you need a “Add to Favorite” button on your page, here is a sample code which is compatible with both IE & Firefox

<script language=javascript>
function addFav() {
try{window.external.AddFavorite(window.location.href, document.title);return;}catch(e){}
try{window.sidebar.addPanel(document.title, window.location.href, "");return;}catch(e){}
}
</script>
<button onclick='addFav()'>Add to Favorite</button>


Here is a sample :

Dreamhost Custom Error Pages

Change .htaccess file

Refer: http://wiki.dreamhost.com/index.php/Custom_error_pages