Saturday, February 13, 2010

Windows shortcut

Windows logo key
Display or hide the Start menu

Windows logo key+L
Lock the computer

Windows logo key+BREAK
Display the System Properties dialog box

Windows logo key+D
Show the desktop

Windows logo key+M
Minimize all windows

Windows logo key+SHIFT+M
Restore minimized windows

Windows logo key+E
Open My Computer

Windows logo key+F
Search for a file or folder

CTRL+Windows logo key+F
Search for computers

Windows logo key+F1
Display Windows Help

Windows logo key+R
Open the Run dialog box

Windows logo key+U
Open Utility Manager

Monday, February 8, 2010

Reduce Firefox memory usage

Keyword:
Optimize Firefox memory
Firefox memory usage too high

In this chapter
I will simply teach how to reduce your Firefox memory usage.
Usually my Firefox can reach from 100k-300k memory usage. But with this, about 60-90k

Case
Im using Firefox 3.6
Window XP Home Edition SP 3
This tutorial is actually come from aviransplace

The Setting
But here my settings. You can custom it as you want.
Refer to the aviransplace to know what is the value should be put
1. At the address bar, type "about:config" and press enter
2. browser.cache.disk.capacity = 4096
3. browser.cache.offline.capacity = 4096
4. browser.sessionhistory.max_total_viewers = 2


Note
When using Firebug for developing website. I realize that the more error Firebug detect, the higher my memory consumption (and it does not go down).
To view current memory chache usage type "about:cache?device=memory" at addressbar

Additional settings.
Take a note that Firefox plug-in also can affect you memory usage.
You can check it ad Tools > Add-ons
In my case I only leave
Firebug 1.5.0
Flashblock 1.5.11.2
LogMeIn 1.0.0.496

Once done. My 1 tab with google page consume me 70k memory usage

Another additional setting
In case you want a ad hock browsing. It is best for you to keep a FF with a safemode start.
Simply duplicate the Shortcut of the FF
At the new Icon Right click > Properties
And add new words "-safe-mode"
It become like this

"C:\Program Files\Mozilla Firefox\firefox.exe" -safe-mode

Guess what. Its 55k memory usage

Update on 19 July 2010
Now Im using Google Chrome (most of the time) because of FF will run 1 .exe file just for flash. I didnt remember the name but it was on the task manager. This result a very high CPU consumption in my PC. I heard it was because of latest FF and this is still on a testing phase.

Update on 22 April 20110
I think these method is already obsolete and cannot be use anymore

Wednesday, February 3, 2010

PHP trace error

Keyword
PHP trace error
PHP display error stack
PHP show error stack
PHP debug error
PHP show previous error

I believe many developer is well known of this, which is debugging your PHP code.

You might realize in WAMP (windows) the error display is at the current line.
Thus, if the error happen in a function tracking it down will be hard indeed since you dont know where the function is called.

To solve this problem, developer will use debugger tool.
In this case I will recommend Xdebug. http://xdebug.org/index.php

Here some screen shot on how the xdebug looks like


To install xdebug for window is pretty easy
1. Donwload the xdebug.dll file
2. Inside the php.ini, specifiy where you put the xdebug.dll file
3. Detail of the installation can be read at the xdebug documentation itself

good luck, kupo