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

IBM SystemX 3550 Server with Ubuntu 12.04 LTS

Recently I got hold of an IBM SystemX 3550 with dual Intel Xeon X5450 Quad Core 3.0Ghz and 16Gb DDR2 PC5300 ECC FB RAM. I installed Ubuntu 12.04 LTS and hoped to replace the existing personal server (Ubuntu 12.04 LTS, Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz) which is hosting the website. It seems everything is working fine so far, hopfully after replacing the exiting server, all the projects hosting on this server will be serving more efficiently.

Unleashing the power of an Acer Chromebook C710 - 2615 (Part One)

Tagged:  

Acer Chromebook C710 - 2615 (http://www.bestbuy.ca/en-CA/product/acer-acer-c7-11-6-chromebook-silver-...) is a cheap little machine running ChromeOS, it is fast even with only 2 GB memory. For the price $199, It is a value for money web access device. However, it is almost useless if you are not online.

There are a couple ways to unlease the power of this machine, making it an useful online and offline machine.

1. Install Ubuntu by ChrUbuntu

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

Anomy Sanitizer can be used with Courier and Maildrop to filter potentially harmful email attachments for example, files with exe or bin extension.

1. Download Anomy Sanitizer http://mailtools.anomy.net/
anomy-sanitizer-1.76.tar.gz

2. Install

cd /usr/local
tar xvzf anomy-sanitizer-1.76.tar.gz

3. change Ownership to user courier

cd /usr/local/anomy/bin
chown -R courier.courier *

4. Enable Maildrop

vi /usr/lib/courier/etc/courierd

  DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"
  MAILDROPDEFAULT=./Maildir
 

5. Maildrop configuration

SSL with Virtual Hosts Using SNI

Years ago I needed to host a couple of SSL virtual hosts with only one IP address, and http://www.drupalschool.net/node/1393 works for me. With the Apache 2.2.12 or newer version using mod_ssl (OpenSSL 0.9.8f or later), there is a new feature called "Server Name Indication (SNI)", the configuration is more simple. I found this configuration works for me.


# Ensure that Apache listens on port 443
Listen 443

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:443

# Go ahead and accept connections for these vhosts
# from non-SNI clients

Upgrading Ubuntu from 13.04 to 13.10, Apache failed to serve virtualhost

After upgrading one of the machines from Ubuntu 13.04 to 13.10, Apache failed to serve VirtualHost on the machine.

I found the upgrading process has replaced apache2.conf.

I changed

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

to

# Include generic snippets of statements
IncludeOptional conf-enabled/*

# Include the virtual host configurations:
IncludeOptional sites-enabled/*

MySQL says "No Such Process"

After rebooting one of the production servers this morning, MySQL failed to start, it complained:

[root@myserver /etc]# service mysql start
Starting MySQL../etc/init.d/mysql: line 159: kill: (6894) - No such process

I also tried the "Safe Mode", no luck

[root@myserver /etc]# mysqld_safe
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/myserver.myuniversity.ca.pid
130911 12:10:18 mysqld ended

Upgrading Server from Ubuntu 10.04 LTS to 12.04 LTS

For the past three years, this site was hosted on an Core2 3Ghz machine running Ubuntu 10.04 LTS, last night I upgraded it to Ubuntu 12.04 LTS. The upgrading process is very smooth, it took a couple of hours thou. After the upgrading everything seems working fine.

Sendmail as Smart Host

For years I had some PHP scripts hosting on the same machine as a mail server running Courier-MTA, the PHP scripts can send emails to anywhere in the world and of course to a doamin , say mydomain.com, hosted by the mail server.

For some reasons I need to move the PHP scripts to another machine on the same subnet, the email sending functions on the scripts started to have problems. The emails sent by the scripts can only reach the upstream domain and fail to reach mydomain.com. I think the upstream smtp server refuses to relay mail for me.

mod_cas to protect a directory of files in a public website

I need to provide access only for CAS users to a directory of files inside a public website. After installing mod_cas and configuring, I found this configuration works for me.

1. ssl.conf needs to be loaded before auth_cas.conf, so I renamed ssl.conf to 20_ssl.conf and auth_cas.conf to zz_auth_cas.conf (they are located at /etc/httpd/conf.d/ on my Red Hat Linux 6 server)

2. the content of /etc/httpd/conf.d/zz_auth_cas.conf

# mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the
# CASv1 and CASv2 protocols
#

JQuery .on(), Late Binding and Delegated Event

It is very easy for JQuery to handle events triggered on objects which are present before the binding (Assignment of event-handlers to an action executed on an object). To handle late binding (objects are not present before the binding) is a bit tricky.

Syndicate content