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

Create Multisites with Drupal 6

In my work I need to create another Drupal site with the same code base of the existing site, I use a Drupal feature called Multisites. What it means is two or more sites sharing the same Drupal core files. If the Drupal core files are updated, all the sites will be updated.

1. Create a new database for the second site (www.secondsite.com)
2. Create a virtual host


ServerAdmin lawrence@athabascau.ca
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/drupal
ServerName www.secondsite.com

Install Centos 6.2 86_64 on Acer Aspire One D257

The Acer Aspire One D257 that I I purchased on Boxing Day turns out to be a great tool to me. I wiped out the Ubuntu 11.04 and installed Centos 6.2 86_64, the installation was very smooth, the wireless is working. I used this machine to back up the servers in my work place. My work servers are running Red Hat Enterprise Linux, the Acer Aspire One is ideal as a test machine. This netbook runs very fast with Centos 6.2.

Transforming an Acer Aspire One D257

I am not keen on Acer products because I find Acer products not robust and the UX generally very poor. One thing good for Acer products is the price, they are normally cheaper than other brands of similiar products.

Populate Dropdown List with Jquery and AJAX

test_country.php

$(function(){
  $("#Country").change(function(){
    $.getJSON("get_province.php",{id: $(this).val(), ajax: 'true'}, function(data){
      var options = '';
      for (var i = 0; i < data.length; i++) {
        options += '' + data[i].provinceName + '';
      }
      $("#Province").html(options);
    })
  })
})

Upgraded to Ubuntu 11.10

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

Upgraded MediaWiki to 1.17.0 and SMW to 1.6.1

Tagged:  

After attending the SMWCon Fall 2011 in Berlin, I wanted to try out some of the new SMW extensions such as Survey. I decided to upgrade my Mediawiki from 1.16.5 to 1.17.0 and SMW from 1.5.6 to 1.6.1.

There is no problem at all to upgrade Mediawiki. I backed up $path/mediawiki and tarred Mediawiki 1.17.0 and copied all the extensions from the back up to $path/mediawiki/extensions, then I copied LocalSettings.php back to $path/mediawiki, then I run : php $path/mediawiki/maintenance/update.php. Everything works.
However, after I tarred SemanticMediaWiki and updated LocalSettings.php to

Semantic Mediawiki Conference Fall 2011 in Berlin, Germany

Tagged:  

The Fall 2011 SMWCon will be held on September 21–23, 2011 in Berlin, Germany (http://semantic-mediawiki.org/wiki/SMWCon_Fall_2011). I will be attending both hands-on sessions and the conference. This conference is more practical and specific to using semantic technology in Mediawiki, unlike International Semantic Web Conference 2010 I had attended last year in Shanghai. ISWC is more academic. I have been using Semantic Mediawiki as my Personal Knowledge Management Systems for years, and my research was focused on Semantic Web, I found there are a lot of functionalities I had overlooked.

Mount a NTFS in Red Hat Enterprise Linux

I need to back up a Linux server with an external USB drive. The drive is formatted with NTFS file systems. I need to mount NTFS on a Red Hat Enterprise Linux.

1. two packages: fuse and ntfs-3g
http://citylan.dl.sourceforge.net/project/fuse/fuse-2.X/2.7.4/fuse-2.7.4...
http://tuxera.com/opensource/ntfs-3g-2010.8.8.tgz

2. Compile fuse
tar xzf fuse-2.7.4.tar.gz
cd fuse-2.7.1
./configure –exec-prefix=/; make; make install

3. Compile ntfs-3g

tar xzf ntfs-3g-2010.8.8.tgz
cd ntfs-3g-2010.8.8
./configure; make; make install

4. Mount the drive

Install Intel 6200 Advanced-N on MSI WInd U100 with Ubuntu 11.04

I had owned my MSI Wind U100 for three years and it is still running great. The original wireless adapter RT8187SE is working without any problem with Ubuntu 11.04. However, RT8187SE is a 802.11g adapter. I want to upgrade the Internet connection speed to 802.11n. I ordered an "Intel 6200 Centrino Advanced-N Wireless Network Adapter" from http://www.ncix.com/products/?sku=58337&vpn=622AN.HMWG&manufacture=Intel.
It is claimed that Intel 6200 is able to reach to a speed up to 300 Mb/s.

Linux, Rsync and IOMEGA StorCenter ix2

Recently I had brought a NAS (IOMEGA StorCenter ix2, Cloud Edition) for our department to back up two Linux servers. The NAS is Linux-based and supports NFS or SAMBA mount. However, I tried to minimise changes to our servers and just want to perform a simple operation to back up the servers. No NFS or SAMBA mounts.
I chose Secure Rsync.

Syndicate content