Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:102:\"Declaration of views_plugin_style_default::options() should be compatible with views_object::options()\";s:5:\"%file\";s:102:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/views/plugins/views_plugin_style_default.inc\";s:5:\"%line\";i:24;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:151:\"Declaration of calendar_plugin_display_page::options_submit() should be compatible with views_plugin_display_page::options_submit(&$form, &$form_state)\";s:5:\"%file\";s:108:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_plugin_display_page.inc\";s:5:\"%line\";i:297;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:104:\"Declaration of calendar_plugin_display_page::options() should be compatible with views_object::options()\";s:5:\"%file\";s:108:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_plugin_display_page.inc\";s:5:\"%line\";i:297;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:105:\"Declaration of calendar_plugin_display_block::options() should be compatible with views_object::options()\";s:5:\"%file\";s:109:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_plugin_display_block.inc\";s:5:\"%line\";i:78;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:163:\"Declaration of calendar_plugin_display_attachment::options_submit() should be compatible with views_plugin_display_attachment::options_submit(&$form, &$form_state)\";s:5:\"%file\";s:114:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc\";s:5:\"%line\";i:242;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:110:\"Declaration of calendar_plugin_display_attachment::options() should be compatible with views_object::options()\";s:5:\"%file\";s:114:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc\";s:5:\"%line\";i:242;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:151:\"Declaration of calendar_plugin_display_ical::options_submit() should be compatible with views_plugin_display_page::options_submit(&$form, &$form_state)\";s:5:\"%file\";s:113:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/calendar_ical/calendar_plugin_display_ical.inc\";s:5:\"%line\";i:217;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:134:\"Declaration of date_handler_field_multiple::pre_render() should be compatible with content_handler_field_multiple::pre_render($values)\";s:5:\"%file\";s:99:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/date/date/date_handler_field_multiple.inc\";s:5:\"%line\";i:185;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:102:\"Declaration of calendar_view_plugin_style::options() should be compatible with views_object::options()\";s:5:\"%file\";s:106:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/includes/calendar_view_plugin_style.inc\";s:5:\"%line\";i:173;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:136:\"Declaration of calendar_plugin_style_ical::init() should be compatible with views_plugin_style::init(&$view, &$display, $options = NULL)\";s:5:\"%file\";s:111:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/calendar_ical/calendar_plugin_style_ical.inc\";s:5:\"%line\";i:254;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135

Warning: INSERT command denied to user 'o4077762'@'infong892.perfora.net' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:14:\"strict warning\";s:8:\"%message\";s:102:\"Declaration of calendar_plugin_style_ical::options() should be compatible with views_object::options()\";s:5:\"%file\";s:111:\"/homepages/27/d313962189/htdocs/poon.co/sites/all/modules/calendar/calendar_ical/calendar_plugin_style_ical.inc\";s:5:\"%line\";i:254;}', 3, '', 'http://poon.co/node?page=5', '', '18.208.126.232', 1660309282) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135
Lawrence Poon | a knowledge worker and lifelong learner

Mini How To : Courier-mta 0.62.2 on Fedora 11 (Part VI)

enable local mail delivery using maildrop

vi /usr/lib/courier/etc/courierd
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"

$HOME/.mailfilter

#MFMAILDROP=2
#
# DO NOT EDIT THIS FILE. This is an automatically generated filter.

FROM='lawrence.poon@gcap.ca'
import SENDER
if ($SENDER eq "")
{
SENDER=$FROM
}

##Op:textplain
##Header:
##Value:
##Folder:!lawrence@athabascau.ca
##From:
##PlainString
##Name:ForwardToAUemail

if (( (! /^Content-Type:/) || /^Content-Type: text\/plain$/ || /^Content-Type: text\/plain;/))
{

Mini How To : Courier-mta 0.62.2 on Fedora 11 (Part V)

Squirrel Webmail has a module for user to change password, for some reasons I cannot use it. I have to create my own script to handle changing passwords. The password stored in MySQL is encrypted with MySQL function encrypt(). When I first called MySQL function encrypt(), for example,
encrypt('mypassword'), it generates a 13 character string, when call it again, it generates another 13 character string. My question is if calling encrypt('mypassword') will give different string at different time, how can I compare this string with the old password provided by the user.

Install OpenOffice 3.2.1 on Ubuntu 10.04 86_64

Tagged:  

Ubuntu 10.04 comes with OpenOffice 3.2.0 which is very impressive. It absolutely can replace M$ office suite. Recently OpenOffice 3.2.1 was released, I cannot resist the temptation to install in on my Ubuntu 10.04.

0. Remove OpenOffice 3.2.0
sudo apt-get remove openoffice*.*
1. Download
OOo_3.2.1_Linux_x86-64_install-deb_en-US.tar.gz
2. Uncompress the file
sudo tar xvzf OOo_3.2.1_Linux_x86-64_install-deb_en-US.tar.gz
3. Change Directory
cd OOO320_m18_native_packed-1_en-US.9502/DEBS
4. Install
sudo dpkg -i *.deb
5. Install the Desktop Integration

Ubuntu 10.04 86_64 on MSI Wind U230

I had brought an MSI Wind U230 netbook while I was on vacation in Hong Kong. There are many good features for this machine, it comes with an AMD L355 Dual Core CPU, 12 inch screen, HD video, HDMI video output and N wireless. The keyboard is better than my regular desktop keyboard.

Power outage and a half-new server with Ubuntu 10.04

Last week my house had a short power outage, my server which is hosting this website did not work from then on. My first thought was something wrong with the power supply of my humble five year old server, which has an AMD64 with 2G Ram. After replacing the power supply, the system still did not work. I thought the motherboard or CPU may be dead.

Ubuntu 10.04 on MSI Wind U100

Tagged:  


Ubuntu 10.04 has just been released yesterday, I cannot wait to install onto my MSI Wind U100. The installation process is very smooth, no issue at all. Re-booting after installation was complete, Ubuntu 10.04 gave me a login prompt in about 45 seconds. Wireless, webcam and USB drive all work. Ubuntu 10.04 seems running faster than 9.04. It comes with OpenOffice 3.2 and Firefox 3.6.3. I am a happy user.

Install OpenOffice 3.2 on Fedora 10

OpenOffice.org 3.2 is released and it is time to upgrade OpenOffice on my desktop computer running Fedora 10.

1. Download OpenOffice.org 3.2
wget http://download.services.openoffice.org/files/stable/3.2.0/OOo_3.2.0_Lin...

2. Remove Old OpenOffice
yum remove openoffice.org*

3. Extract the download
tar -xvf OOo_3.2.0_LinuxIntel_install_wJRE_en-US.tar.gz

4. Install RPM packages
rpm -ivh RPMS/*.rpm

5. Install the Desktop Integration
rpm -ivh RPMS/desktop-integration/openoffice.org3.2-redhat-menus-3.2-9472.noarch.rpm

6. done

Distribute Photos (Part II)

From Part I I have mentioned the reasons why building a photo distributing system. Part II is to describe how to implement it.

Prepare the directories. First, I created the document root.
/var/www/gallery/

Under the document root, I created the album, for example 200911 is for Nov 2009 Album.
/var/www/gallery/200911

Under the each album, I created a folder called orginal and I copied all the photos of original size into this folder.
/var/www/galllery/200911/original

After I run a script called imagecreator.php by typing:

php imagecreator.php 200911

Distribute Photos (Part 1)

From time to time I need to distribute a couple hundred of photos to a group of people after some functions such as birthday party....

PHP, OCI and Oracle Express

Tagged:  

I need to write a small web application with PHP, OCI and Oracle Express as a part of my assignment in a course called Enterprise Information Management.  I was looking for a way to connect Oracle Express as sys so that I can be more easy to work on the program. I needed to enable : oci8.privileged_connect = On in php.in

Syndicate content