Sunday, January 15, 2012

[IJCISIM] Horizontal Format Data Mining with Extended Bitmaps

We published our data mining algorithm to the International Journal of Computer Information Systems and Industrial Management Applications ISSN 2150-7988. It is available online with the Volume 4 - 2012.

Feel free to download it.
Horizontal Format Data Mining with Extended Bitmaps
Buddhika De Alwis, Supun Malinga, Kathiravelu Pradeeban, Denis Weerasiri, Shehan Perera
pp. 514-521 Full Text PDF

run-init: /sbin/init" I/O error "kernel panic not syncing: Attempted to kill init!

My Ubuntu 10.04 LTS / 64 bit failed to start with the error message, "run-init: /sbin/init" I/O error "kernel panic not syncing: Attempted to kill init!", with the CAPSLOCK constantly blinking, all of a sudden. It was working very fine, till the day before, and all of a sudden this failure happened without any apparent reason. The recovery mode and the attempts to log in through the previous versions of the kernel were not successful either. When logging in through a Live CD, it suggested no error on disk and it had been mounted properly too.

So I tried to use "mkinitramfs" from /boot to build mkinitrd and rebooted. "update-mkinitramfs" (sudo, of course!) from the live CD didn't work either, as the drive was found to be read-only media just for that command! Similarly also tried to get initramdr from the LiveCD using the same command, and also downloaded from the relevant site, and restarted after adding the relevant menu entry to /boot/grub/grub.cfg and rebooted. Still no luck.

menuentry 'Ubuntu, with Linux 3.0.0-14-generic' --class ubuntu --class gnu-linux 
--class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root 890aebc7-6238-4ce9-99d1-356b3f0163a4
    linux    /boot/vmlinuz-3.0.0-14-generic root=UUID=890aebc7-6238-4ce9-99d1-356b3f0163a4 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.0.0-14-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root 890aebc7-6238-4ce9-99d1-356b3f0163a4
    echo    'Loading Linux 3.0.0-14-generic ...'
    linux    /boot/vmlinuz-3.0.0-14-generic root=UUID=890aebc7-6238-4ce9-99d1-356b3f0163a4 ro recovery nomodeset
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-3.0.0-14-generic
}


There are many threads on "Kernel Panic". But only a very few comes to the point, and only a tiny bit of those sites actually suggests some fix to try, where many of those threads are still unanswered questions for years. From what I learned, this "Kernel Panic" seems to be one deadly issue that can happen for multiple reasons - and is not an easy fix - except by the means of compiling the kernel or simply reinstalling the operating system. After trying all possible attempts to fix this, and also after trying to compile kernel, I decided the time invested on this is a bit waste. Hence I backed up everything on my Ubuntu to my windows partition through the Live CD and re-installed Ubuntu.

I have installed Ubuntu 11.10 (Oneiric Ocelot), where I had 10.04 before. The first impressions were not so nice, thanks to the new Unity interface. However, "sudo apt-get install gnome-shell" followed by "sudo apt-get remove unity" resolved the issue, letting me switch to gnome3 interface. :) Now I am awaiting the release of Ubuntu 12.04 LTS to upgrade in a few months.

Apart from this Kernel Panic, there were a few other remarkable events too. One was the GSoC awareness session at the University of Jaffna (Presentation Slides). The WSO2 offsite at Avani Hotel, Bentota was remarkable as well. These were the remarkable events of the first fortnight of the year 2012. This year seems to be so eventful!

Monday, January 2, 2012

Installing WSO2 WSF/PHP on Ubuntu 10.04

This is discussed at http://wso2.org/project/wsf/php/2.1.0/docs/install_guide.html. However, I was informed that there are some issues in following the steps as discussed. Hence I am elaborating the steps a bit further, addressing the issues reported.
To install, you will need OpenSSL and PHP-5.2.0 or later - the dev version.

sudo apt-get install openssl

    sudo apt-get install apache2
    sudo apt-get install php5
    sudo apt-get install libapache2-mod-php5
    sudo apt-get install php5-cli
    sudo /etc/init.d/apache2 restart

Now ./configure.

You might encounter the below issue, if you haven't given the path of php5 to configure.

pradeeban@pradeeban:~/wso2/wso2-wsf-php-src-2.1.0$ ./configure
./configure: line 755: php-config: command not found
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
./configure: line 20203: --extension-dir: command not found
checking for dlopen in -ldl... yes
checking for inflate in -lz... yes
checking for ANSI C header files... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for linux/if.h... yes
checking net/if_types.h usability... no
checking net/if_types.h presence... no
checking for net/if_types.h... no
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking sys/appleapiopts.h usability... no
checking sys/appleapiopts.h presence... no
checking for sys/appleapiopts.h... no
checking whether to build rampart ... yes
checking whether to build libxml2 xml parser library... checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
no
checking whether to build guththila xml parser library... no
checking whether to use apache2 as server transport... no
checking whether to use apr. Note that if you build with apache2 you might need to do this.... no
checking whether to build tests... no
checking whether to enable trace... no
checking whether to enable multi threading... yes
checking whether to use openssl... yes
checking whether to build dynamic invocation client library... yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing wsf commands
config.status: executing php commands
./config.status: line 1235: phpize: command not found
=== configuring in src (/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/wsf_c'  --cache-file=/dev/null --srcdir=.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
configure: error: ./configure failed for src

You can fix this by using, 
./configure --with-php-config=/usr/bin/php5

Now you can go ahead and "make". However, make sure that you have php5 dev-version for building. Otherwise, it will fail as below.

make[2]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c'
Making all in src
make[2]: Entering directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src'
/bin/bash /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/libtool --mode=compile cc  -I. -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src -DPHP_ATOM_INC -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/main -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src Usage: php5 [options] [-f] [--] [args...] php5 [options] -r [--] [args...] php5 [options] [-B ] -R [-E ] [--] [args...] php5 [options] [-B ] -F [-E ] [--] [args...] php5 [options] -- [args...] php5 [options] -a -a Run as interactive shell -c | Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f Parse and execute . -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r Run PHP without using script tags -B Run PHP before processing input lines -R Run PHP for every input line -F Parse and execute for every input line -E Run PHP after processing all input lines -H Hide any passed arguments from external tools. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z Load Zend extension . args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf Show information about function . --rc Show information about class . --re Show information about extension . --ri Show configuration for extension . -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/include -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/wsf.c -o wsf.lo
/bin/bash: -c: line 0: syntax error near unexpected token `<'
/bin/bash: -c: line 0: `/bin/bash /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/libtool --mode=compile cc  -I. -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src -DPHP_ATOM_INC -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/main -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src Usage: php5 [options] [-f] [--] [args...] php5 [options] -r [--] [args...] php5 [options] [-B ] -R [-E ] [--] [args...] php5 [options] [-B ] -F [-E ] [--] [args...] php5 [options] -- [args...] php5 [options] -a -a Run as interactive shell -c | Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f Parse and execute . -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r Run PHP without using script tags -B Run PHP before processing input lines -R Run PHP for every input line -F Parse and execute for every input line -E Run PHP after processing all input lines -H Hide any passed arguments from external tools. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z Load Zend extension . args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf Show information about function . --rc Show information about class . --re Show information about extension . --ri Show configuration for extension . -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/include -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -c /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/wsf.c -o wsf.lo '
make[2]: *** [wsf.lo] Error 1
make[2]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0'
make: *** [all] Error 2

This is because of the missing phpize.

sudo apt-get install php-pear
sudo apt-get install php5-dev

Now you can "make" and "make install". You might have to "sudo make" and "sudo make install" based on the permission and the preferred location.

If "make" fails as,
make[3]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c'
make[2]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c'
Making all in src
make[2]: Entering directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src'
/bin/bash /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/libtool --mode=link cc -DPHP_ATOM_INC -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/main -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/include -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util -I/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/include -I/usr/include/libxml2  -DHAVE_CONFIG_H  -g -O2   -o wsf.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src/modules  wsf.lo wsf_xml_msg_recv.lo wsf_util.lo wsf_stream.lo wsf_worker.lo wsf_out_transport_info.lo wsf_client.lo wsf_policy.lo wsf_wsdl.lo -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs -lsandesha2_client -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs -lneethi_util -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs -lneethi -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs -lmod_rampart -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs -laxis2_http_receiver -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs -laxis2_http_sender -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs -laxutil -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs -laxis2_engine -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs -laxis2_axiom -Wl,-rpath,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs -laxis2_parser
libtool: link: cc -shared  .libs/wsf.o .libs/wsf_xml_msg_recv.o .libs/wsf_util.o .libs/wsf_stream.o .libs/wsf_worker.o .libs/wsf_out_transport_info.o .libs/wsf_client.o .libs/wsf_policy.o .libs/wsf_wsdl.o   -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs -Wl,-rpath -Wl,/usr/lib/php5/20090626/wsf_c/lib -Wl,-rpath -Wl,/usr/lib/php5/20090626/wsf_c/modules/rampart -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs/libsandesha2_client.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs/libneethi_util.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs/libneethi.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs/libmod_rampart.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs/libaxis2_http_receiver.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs/libaxis2_http_sender.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs/libaxutil.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs/libaxis2_engine.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs /home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs/libaxis2_axiom.so -L/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs -laxis2_parser  -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/sandesha2c/src/client/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/util/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/neethi/src/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/rampartc/src/core/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/receiver/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/transport/http/sender/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/util/src/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/src/core/engine/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/om/.libs -Wl,-rpath -Wl,/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs   -Wl,-soname -Wl,wsf.so -o .libs/wsf.so
/usr/bin/ld: cannot find -laxis2_parser
collect2: ld returned 1 exit status
make[2]: *** [wsf.la] Error 1
make[2]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pradeeban/wso2/wso2-wsf-php-src-2.1.0'
make: *** [all] Error 2

Export the path of wsf_c/lib.

export LD_LIBRARY_PATH=/usr/lib/php5/20090626/wsf_c/lib/

This will fix the make issues. Now you should be able to make and make install.

Edit /etc/php5/apache2/php.ini
Add the lines, 
extension=wsf.so
extension=xsl.so

Copy all the samples to your Web server's document root. Now the samples will be in a folder as /var/www/samples.
Test with a Web browser. For example, access http://localhost/samples/echo_client.php

Saturday, December 31, 2011

Google Code-In


The reach of Google Code-In (GCI) is relatively lower in Sri Lanka (probably in other countries too), than its sister program Google Summer of Code. One major reason can be, the age group of 13 - 17 (pre-university students) is not much into programming, over generally into computers, like the university students of 18+ do, in third world countries like Sri Lanka. However, more importantly, the word is yet to be spread, regarding GCI, I feel.

This presentation resembles the Google Summer of Code presentation, I prepared for AbiWord/GSoC, in its style. This is based on my experience as a mentor for Haiku in Google Code-In 2011. Hence the examples used in this presentation are mostly from Haiku. I hope, this presentation will be useful to any student as an introduction to Google Code-In.

Special thanks to Krasimir Petkov, GCI mentor (Haiku) for his valuable input at several times, in shaping this presentation up.

Friday, December 30, 2011

Why you give ma address to othersz?

When ticking those "Subscribe" buttons, I didn't think much. But suffering now, when it is even impossible to count the number of mail filters.

Some newsletters have obviously given my address to other third-parties too. May be with or without asking me, during the sign-up. However, thanks to the CAN-SPAM Act, all is well, and I was able to effectively get rid of these newsletters by unsubscribing from them. Good bye stupid newsletters - I am removing *many* of you today.. Thanks for messing my gmail inbox with all your marketing spam.. :)


P.S: The cat photo was taken from a bulk email, which holds no indication of the photographer or owner. Caption (y u censor me?) is added by me. Photo credits should go to the photographer.

Sunday, December 25, 2011

Open Source Evangelization and the evolution of the GSoC introductory presentation

Open Source Evangelization
We decided to use Google Summer of Code, as a mean to evangelize open source among the university students. I have been contributing to this evangelization effort this year. On this, I have prepared a presentation and presented at the [1] Institute of Engineers, Sri Lanka (IESL), [2] the Science Faculty of the University of Peradeniya, and [4] the Engineering Faculty of the University of Peradeniya. We have also scheduled a session at [5] the Science Faculty, the University of Jaffna, the 7th of January, 2012.

The evolution of the presentation can be found at the respective blog posts.
[1] GSoC-2011 [35 slides / IESL. First version - 40 minutes]
[2] GSoC 2011 and FOSS [38 slides / SET - UoP - 75 minutes]
[3] AbiWord and Google Summer of Code - 2011 [35 slides / AbiWord Specific - 75 minutes (estimated)]
[4] Google Summer of Code awareness session [42 slides / E-Fac - UoP - 75 minutes]
[5] Google Summer of Code 2012 [45 Slides / Further improved. Final / Global version - 75 minutes (estimated)]

It is interesting to find the growth of the GSoC presentation over the year. Hope my GCI presentation [28 slides / First Version - 50 minutes (estimated)] too will eventually become a presentation with a similar quality.

The world is a paraboloid..

Finally, the year 2011 comes to an end. 2011 was a year with its own downs and ups. I still feel, 2010 and 2004 were the best of all the years. However, I was able to learn many new things and I strongly believe the impact 2011 made in me is really huge and irreversible. :) In summary, 2011 was a positive year. I am trying to analyze the year through this blog post, with a summary of the remarkable events of the year. 

WSO2
For a software engineer (of course, for others too.. :)), work place plays a major role in his life. The open culture of WSO2 fits me pretty well. I always try my best to contribute to whatever I can. I have discussed about the life at WSO2 in one of my blog posts - "Work at WSO2..". There is an array of webinars we did, and I have presented a few too. You can view them from "Webinars" in this blog. As a member of the WSO2 Stratos team, I have blogged more on Stratos and WSO2 Load Balancer. 

FOSS
I have already done an analysis on the year 2011, when I blogged about my first year completion at WSO2, the 13th of September 2011. Read more on this - one year since...✍.  Similarly. "Open Source Evangelization and the evolution of the GSoC introductory presentation", summarizes the blog posts on the open source presentations I did on GSoC and GCI. This year, I have mentored for both GSoC (AbiWord) and GCI (Haiku). 


Sweetness of 2011
2011 had its own set of interesting days and events. Google Summer of Code Mentor Summit 2011 and  WWW2011India are remarkable. On the left, is a photo by Harini, teddies marking the 23rd of November.


Llovizna
2011 was a really good year for my blog Llovizna. 2010 was not a good year for my blog, I would say. 2011 was more of an extrapolation of the year 2009. I have blogged about most of my interesting life events through Llovizna, this year. Llovizna became a mixed blog this year - with blog posts touching random topics - not just technology.

how to ignore someone you love is one viral blog post of the year from me. An unreasonably huge delay of publishing one of my articles in a site, made me take a strong decision late this year - that I will publish all the posts through Llovizna only. 

The world is complicated
Hyperbolic Paraboloid [1]
The world is not flat. Rather, it is a paraboloid. I am good in mathematics - but alas, the world is much complicated to be represented by mathematical equations. 

Culture
Culture is NOT something our ancestors had or did at 500 BC. It is NOT something the books say. It is the principles around us today that makes us. Culture is NOT a static entity. It evolves. No individual can harm or destroy the culture. It indeed improves eventually, regardless of the popular belief. Even those who commonly acknowledge that they do not care about their culture too are bound to it. They may just avoid some aspects of it. What they avoid may just be the tip of the culture. Just like the tip of the iceberg. I was able to realize how the country and the culture have shaped us as who we are now, during my visit to the US.

Distributed Computing
I was looking into Data mining and distributed computing this year. Hope to research further on them in the upcoming years. 

The world is a paraboloid
This is one of the concluding blog posts of the year 2011, which happens to be the 100th blog post of the year. Like this blog post, the year too was a complicated mixture with lots of unrelated events packed together. Hope to have 2012 as a faster and more effective year. :) Merry Christmas and a very happy new year, everyone!

☠ ☠ ☠ ~ Whatever happens, keep running. The story ends, when you halt. Do not stop at any time. No time to pause.. ☠ ☠ ☠
[1] http://upload.wikimedia.org/wikipedia/commons/4/4a/HyperbolicParaboloid.png