Skip to main content

Portal & Webapp

Multi-Langauge in Drupal 6

Posted in

Here are some modules, posts and discussion on how to do multiple languages in Drupal 6:

Apache Performance Tuning

Posted in

http://www.devside.net/articles/apache-performance-tuning is a good article on this topic.

In a nutshell, here are things you can do to reduce memory foot print:

  1. Review the list of loaded modules, and remove the ones that you don't need or use
  2. Change mpm_prefork to mpm_worker
  3. Limit MaxClients in mpm config.

Get out of Diggbar Framing

Posted in

Javascript approach

http://en.wikipedia.org/wiki/Framekiller has it

PHP approach

<?php
if (preg_match('#http://digg.com/\w{1,8}/*(\?.*)?$#',
                            $_SERVER['HTTP_REFERER']) ) {
echo "<p>Special message for Digg users here.</p>";
exit;
}
?>

Notes on Upgrading Drupal 5 Website to Drupal 6

Posted in

We have successfully upgraded a Drupal-5 website to Drupal-6. Just follow the UPGRADE.txt file that comes with the package, with one minor point as below:

Convert Simplified Chinese to Traditional Chinese in a Drupal Project

Posted in

If you have a Drupal website in Simplified Chinese, and now you want to to convert it into Traditional Chinese, or the other way around, here is how you can do it:

Drupal Tip: How to Move Serialized Data from One Table to Another Table

Posted in

We were trying to insert serialized array data into a table, using the module.install update. We then noticed that we couldn't unserialize the data afterwards. After a little looking around, we realized that we cannot use the function "update_sql()" to insert the serialized data.

Install Memcache and Memcached

Posted in

Install memcached

See How to install Memcache on Debian Etch or How to install Memcache on OSX.

To install memcached on Gentoo:

root# emerge -pv net-misc/memcached
[ebuild  N    ] dev-libs/libevent-1.4.4  ...
[ebuild  N    ] net-misc/memcached-1.2.5  ...

root# emerge -v net-misc/memcached

Upgrade Drupal-Localizer-5.x-1.x to Drupal-Localizer-5.x-3.x

Posted in

If you are still using Drupal-Localizer-5.x-1.x, please consider upgrading to Drupal-Localizer-5.x-3.x. The localizer module will not be upgraded to Drupal-6. Upgrading your Drupal-Localizer-5.x-1.x to Drupal-Localizer-5.x-3.x will make you site compatible for upgrading to Drupal-6.

HowTo: Upgrading from Localizer 1.10 to 3.x is what you need to follow. Below is my note taken when upgrading from Drupal-Localizer-5.x-1.11 to Drupal-Localizer-5.x-3.11.

Install Ruby on Rails 2.1

Posted in

Install RoR 2.1

Download the source package from http://www.ruby-lang.org/en/downloads/, unpack the tar.gz file, and follow the README file.

Rubygem

Download from RubyGems, extract it, and run "sudo ruby setup.rb".

Then you can start the gem server by calling "gem server". And you can view the server via http://localhost:8808.

Syndicate content