Archive for August 2006


Running Kcachegrind on Mac OSX 10.4

August 19th, 2006 — 6:38pm

This is a great app for profiling and optimizing your PHP, Perl and Python code. When used in conjunction with the cachegrind files produced by APD or Xdebug one can profile PHP scripts with a high degree of granularity. Getting it running on Mac is not immediate however.

The short recipe to get it setup is:
- Make sure you have X11 installed.

- edit /sw/etc/fink.conf, add unstable/main and unstable/crypto to the Trees.
(I’ve not seen the app to be unstable though)

- From the command line:
# fink selfupdate; fink index; fink scanpackages

- run the command:
# sudo fink install kcachegrind

NOTE: If you’ve installed Lesstif via some other package (there will be a file here: /usr/X11R6/include/Xm/Xm.h) Then you need to move the Xm directory temporarily somewhere else so Kcachegrind builds.

My php.ini settings look like this:
;;;;;;;;;;;;;;;;;;;;;;;
; Xdebug stuff
zend_extension=”/usr/local/php5/lib/php/extensions/no-debug-non-zts-20050922/xdebug.so”
xdebug.default_enable = 1
;increases memory usage
xdebug.extended_info = 0
xdebug.auto_trace = 0
xdebug.trace_output_dir = “/var/log/php/xdebug”
xdebug.collect_includes = 1
xdebug.show_mem_delta = 1
xdebug.remote_enable = 0
xdebug.auto_trace = 0
; Careful… these 2 produce a lot of output
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = “/var/log/php/xdebug-profile”
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

With that you should be good!

Comment » | technology

Quick list of tools for web development

August 19th, 2006 — 6:28pm

There are a number of tools that we like to use at Izolo.

A number of them help a great deal with understanding what is really going on with web services. Some speed development and others provide the necessary error correction to produce great, international sites.

For validating XHTML:
validator.w3.org

For validating CSS:
jigsaw.w3.org/css-validator

For checking file sizes and transfer optimality:
www.websiteoptimization.com

For international speed testing:
www.alertsite.com

Some excellent Firefox extensions:

Web-developer toolbar

View formatted source

A window into AJAX requests:
Firebug

For filling a page with words before the real content is ready:
Lorem Ipsum Generator

A fantastic talk on UI Design from Oscon ‘06.

Hopefully these help you understand and develop web sites.

Comment » | technology

Back to top