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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) 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=4', '', '18.208.126.232', 1660309247) in /homepages/27/d313962189/htdocs/poon.co/includes/database.mysql.inc on line 135
Lawrence Poon | a knowledge worker and lifelong learner

Installed/Upgraded to Ubuntu 11.04

Since the release of Ubuntu 11.04, I had installed/upgraded four of my machines.
1. MSI Wind U100 (Originally running 10.10 32bit, upgraded to 11.04 32 bit).
2. HP DV6000 AMD Turion(tm) 64 X2 Mobile Technology TL-58
(Originally running 10.10 64 bit, upgraded to 11.04 64 bit).
3. Samsung NF210 Samsung NF210 Intel(R) Atom(TM) CPU N550 @ 1.50GHz ( new installation 11.04 64 bit).
4. Dell Optiplex 780 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (Originally running 10.10 64 bit, upgraded to 11.04 64 bit)

MSI Wind U100 was upgraded without any issues, it seems the machine runs faster.

Barcode Scanner and Jquery/Ajax

Years ago I had built a small library system with PHP/MySQL/Apache/Linux for a local church. Barcode scanners are used to scan items. The librarians need to scan the item and then use a mouse to click on a button to submit a web form for processing. The process is working fine, except it is not convenient. Recently, I rewrite the system with an object oriented approach. At the same time, I use AJAX to trigger the form submission. The librarians are no longer to click on a submit button. Jquery has very good support for AJAX.

Extends a Generic Object Class in PHP

To further pursue my interest in generic object class (http://www.drupalschool.net/node/211), I simplify the codes and extend the functionality. I start using the generic object class in a small project, rebuilding a church library system. It turns out it is working well. If you find it useful, please feel free to use it.

Object.inc.php
<?php
class Object {

private $table;
private $field_names = array();

//Assume the primary key field name is 'id' (auto_increment field)
function __construct($id=0,$table){

$this->table = $table;

Install php-mcrypt on Red Hat Enterprise Linux 5.6

For some reasons I cannot install php-mcrypt by : yum install php-mcrypt.

I install php-mcrypt from REMI respository
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarc...
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi install php-mcrypt

Ubuntu 10.10 64bit on Dell Optiplex 780, with dual monitors

My work computer, an old Intel Pentium 4 @ 3 gz with a medium tower case, was recently retired and replaced with a little better machine, Dell Optiplex 780, a Intel dual core2 with 4GB ram. My old computer was working fine except showing its old age, especially when running a guest Windows XP virtual machine.

Originally, I installed Fedora 14 on the new machine (Actually it is not completely new, I heard it is a surplus), the networking and video had given me problems, the network card does not start after rebooting and my dual monitors do not work properly too.

Kickstart install Dom0 and DomU with Red Hat Enterprise Linux 5.6

Purpose: To create a virtual machine from a new server and install Apache, PHP and MySQL onto the virtual machine.

Situation:

1. Onsite install Dom0 the operating system with core system files
2. Install domU remotely. To avoid firewall issues, the DomU installation files are from a NFS mount on Dom0
3. The server has more than one physical network interface
4. Dom0 and DomU are in different subnet

Preparation:
1. Download Red Hat Enterprise Linux 5.6 iso file and burn onto a DVD
2. Create kickstart configuration files for both Dom0 and DomU

The International Semantic Web Conference 2010 in Shanghai

The International Semantic Web Conference 2010 will be in held Shanghai on 7 Nov - 11, I will be attending the event. http://iswc2010.semanticweb.org/
It is very interesting to know the development trend of Semantic Web as it has many facets of practical applications. How Semantic Web will affect e-learning? As an e-learning practitioner, how to prepare ourselves for the coming of Semantic Web.

Ubuntu 10.10 on MSI Wind U100

Tagged:  

Ubuntu 10.10 has just been released, I wiped out version 10.04 and installed onto my MSI Wind 100 (2GB RAM and 320GB hard drive). The installation process was very smooth, no issues at all. Re-booting after installation was complete, Ubuntu 10.10 gave me the login prompt in less than 40 seconds.
Wireless, Webcam and USB drive all work. Ubuntu 10.10 seems running faster than previous versions. It comes with OpenOffice 3.2.1 and Firefox 3.6.10.

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

Courier complaints message inproperly-formated,
1. vi /usr/lib/courier/etc/bofh
opt BOFHBADMIME=accept
2. Restart Courier
/usr/lib/courier/sbin/courier stop
/usr/lib/courier/sbin/courier start

MSI Wind 100 Wireless and Fedora 13

Tagged:  

It seems it is a rule when installing Linux onto netbook, wireless is not working out-of-box.
However, there is rescue. When I installed Fedora 13 32 bit on my MSI Wind 100, wireless is not working. After installing "kmod-staging",wireless is working again
kmod-staging-2.6.34.7-56.fc13.i686.PAE-2.6.34.2-1.fc13.6.i686
http://download1.rpmfusion.org/free/fedora/updates/13/i386/repoview/inde...

Fedora 13 runs faster than previous versions on Wind U100.

Syndicate content