Sunday, October 12, 2008

php, eclipse, xdebug

0. assume php5, php5-dev, mysql, apache2 are well installed.

1. following the SOPs to install Eclipse+PDT package,
install xdebug(by pecl)

2. take care to change php.ini :
xdebug.remoteport= 10002 (do not use 10000, it's already used by other app in Ubuntu)

3. setup eclipse Workspace carefully,
4. configure PHPServer/Debug in eclipse to use xdebug with port=10002

Friday, October 10, 2008

Drupal Region

http://api.drupal.org/api/function/template_preprocess/6
modules/system/system.module,
region

http://api.drupal.org/api/function/system_default_region/6

CSS related links

http://www.stylinwithcss.com/
http://ccca.nctu.edu.tw/~hlb/trans/practicalcss/
http://designer-info.com/Web/html_tables.htm
http://www.dynamicdrive.com/style/

//=== CSS1, CSS2, CSS3, CSS-P, css grid layout support
CSS-P (Cascading Style Sheets Positioning)

http://www.w3.org/TR/css3-grid/
http://www.w3.org/Talks/2005/0513-CSS-WWW2005/all.htm
http://developer.yahoo.com/yui/grids/

Friday, October 3, 2008

libbonobo, oaf, what's behind?

download src package from launchpad.net

$ sudo apt-get install libglib2.0-dev

cannot find ...
./bonobo-activation/bonobo-activation.h|27|
error: bonobo-activation/Bonobo_Unknown.h: No such file or directory|

./bonobo-activation/bonobo-activation.h|28|
error: bonobo-activation/Bonobo_GenericFactory.h: No such file or directory|

$ sudo apt-file search Bonobo_GenericFactory.h

$ sudo apt-get install libbonobo2-dev

/home/eltonden/Work/libbonobo-2.22.0/activation-server/server.h|6|
error: bonobo-activation/: No such file or directory

/usr/include/libbonobo-2.0/bonobo/Bonobo.h

error: cannot find config.h
has to run ./configure to get config.h
--> install libxml2.0-dev, install gettext, install ...

give up again!

$ sudo apt-get install gnome-iconedit

Makefile.in

automake --> Makefile.am --> Makefile.in --> ./configure --> Makefile

gnome-iconedit trial

$ sudo apt-get install apt-file
$ sudo apt-file search gnomeConf.sh
$ sudo apt-get install libgnome-dev
$ sudo apt-file list gdk-pixbuf
$ sudo apt-get install libgdk-pixbuf-dev

xxx $ sudo apt-get install libgdk-pixbuf2


//=== configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install
--> need gnomeConf.sh, gnome-libs, gnome-libs-devel

??? Solution: I just created a symbolic link from /usr/lib/gnomeConf.sh to /etc/profile.d/gnome.sh
??? is gnome-config installed?


--> https://lists.ubuntu.com/archives/ubuntu-users/2007-January/104640.html
"... In these situations, you can either use the search on this website:
http://packages.ubuntu.com/

Or you can use the apt-file command line application:

apt-file search gnomeConf.sh
libgnome-dev: usr/lib/gnomeConf.sh

Which means the package that you need to install is libgnome-dev
..."

$ sudo apt-get install gnome-libs-dev

$ sudo apt-get install automake
$ ./configure --help

$ gedit aclocal.m4, look for include

$ ./configure --with-gdk-pixbuf-prefix=/usr/include/gdk-pixbuf-1.0
$ gedit widgets/ie-model.h
#include
$ make




//===
http://developer.gnome.org/doc/books/WGA/generating-makefiles.html



//=== configure: error: gdk-pixbuf 0.5.0 not found

//=== ie-model.h:10:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
??? $ COPTS= -I/usr/include/gdk-pixbuf-1.0/gdk-pixbuf ./configure
$ gedit aclocal.m4, look for include gdk-pixbuf/gdk-pixbuf.h



//=== give up configure/maek --> turn to CodeBlocks
error: cannot find Iconedit.h