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

Wednesday, February 3, 2010

Panas flip flop

Pada musim ini. Cuaca sangat panas
Bila dah panas sgt, hujan pulak akan tak menentu.

Disamping itu,
Anda boleh jumpa abam abam kolar putih yg gi kerje naik motor bawak plastic sampah.
Untuk apa? he..

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

Saturday, January 23, 2010

weather today

Hujan flip flop across the globe (KL)

Wednesday, January 20, 2010

phpmyadmin blank page too many table

If you were developer and just installed a WAMP in your machine.

There might be a problem where the phpmyadmin page goes blank after when you select the database.

And if you observe, this only happen when the number of table is too many.

Like this,


This problem is actually because of the setting in your php.ini config file

The setting title is called "Resource Limits". Search for this "Resource Limits" inside the php.ini and change to this.

You can set anything as long as its more than the default.
max_execution_time = 60
max_input_time = 60
memory_limit = 256M


After that, restart the WAMP and its solved.

This problem occured on WAMP5 Version 1.7.0

Notepad 2

Probably many ppl didnt know about "abit advance" version of notepad.
Its lightweight and almost similar to notepad.

Mostly, it is used by developer for quick editing.
As for me, i like it because its support syntax highlighting and show a line number

Here is where you can download it HERE

Some screen shot

Thursday, January 7, 2010

Flashblock

Flashlock is a Firefox add on that used to block all type of flash player.
Its let you to determine by your own to run the flash or not.

Benefit
Improve your internet speed since less data is loaded into your website page
Disable annoying advertisement

How do I get this?
Its in the Firefox add on website. Just search for "Flashblock"
Or simply click HERE
The installation should be easy for Firefox.

Here some example

Flashblock on FF Addon



Flashblock on the run