Portal & Webapp

Install Redmine on CentOS

Redmine website is http://www.redmine.org/.

Install and setup prerequisites

We will need Ruby, Ruby on Rails, Git, etc. The current Redmine (0.9.3) requires Ruby 1.8.7 or 1.8.6, And RoR 2.3.5.  

Libraries

# yum install autoconf automake zlib zlib-devel

 

GIT and Subversion

We need git and svn for various installation:

# yum install git subversion

(or "apt-get install", "emerge", etc)

Drupal and Squid

Here are some posts on setting up Squid in front of Drupal:

Javascript Popup (Lightbox) Scripts

This post: 10 jQuery Lightbox Demo lists some nice lightbox scripts for popping up images or HTML windows.

Among the ones mentioned, TinyBoxy is very lightweight and easy to use! See the demo here.

 

 

Font Rendering Techniques

Here is a comparison of some font rendering technique(s). They let you show non-standard fonts but without resorting to making images.

  • sIFR -- uses Flash to replace text elements with better looking ones
  • Cufon -- uses Javascript/VML and specially encoded fonts
  • FLIR -- a PHP library to render special fonts as images dynamically

Quick overview of all three: http://thinkclay.com/technology/cufon-sifr-flir

Multi-Language in Drupal 6

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

Apache Performance Tuning

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

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

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

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: