How to fix your Debian file system with fsck

Today my server is suddently report with file system error (ext4) after reboot. Some partition is not able to mount automatically and require for fsck. Here are some simple sharing about how to fix it safely.

How to solve Nice Menu hover behind Flash content inserted by FCKeditor

I am combine the use of Drupal's Nice Menu as primary links, and insert a Flash banner into block by FCKeditor. BTW, the hover drop down menu always stay behind the Flash content in IE8. Here is a quick fix: diff -urpNwbB /var/www/html/sites/all/modules/fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js ./fckeditor/editor/dialog/fck_flash/fck_flash.js --- /var/www/html/sites/all/modules/fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js 2010-05-05 23:54:48.000000000 +0800 +++ ./fckeditor/editor/dialog/fck_flash/fck_flash.js 2010-05-05 23:54:33.000000000 +0800

How to solve FCKeditor background color conflict with Drupal theme

When working with Drupal theme sometime its body CSS may define as color other than white as below: body { color: #FFF; background-color: #000; } Therefore FCKeditor will inheritance its color within editor area and so break the layout. Here is a quick workaround. Edit your fckconfig.js (e.g. sites/all/modules/fckeditor//fckeditor/fckconfig.js as below: FCKConfig.EditorAreaStyles = 'body {color: #000; background-color: #FFF;}' ; Remember to clean both Drupal and your browser cache. Done.

Can't type anything with pinentry.exe

I am now using Win7 + Thunderbird + Gpg4win, but don't know why that pinentry.exe can't type in within any characters... After a quick research I found this useful site (http://wald.intevation.org/tracker/index.php?func=detail&aid=1229&group_id=11&atid=126):
when I rename pinentry-win32.exe --> pinentry.exe It's worked!!!!! Maybe you only need modify some code for win7
Detail:
  1. Go to C:\Program Files\GNU\GnuPG
  2. Backup pinentry.exe as pinentry.exe.orig
  3. Copy pinentry-w32.exe as pinentry.exe

Bulk replace content inline hyper link as CCK link field

I have a Drupal site that need to replace some content inline hyper links as CCK link field. The reason is: link field is more simple and user-friendly for my client, which don't need the BUeditor to input the link into content. So simply:
  1. Add new link field (e.g. "field_link" within this example) for the existing content type (e.g. "newslink" within this example)
  2. Use Devel and run the following code snippet, which loop though all target content, parse the hyper link, and insert it into link field

Happy Chinese New Year!!

Happy Chinese New Year!! 各位虎年快樂! 新年新氣象,祝大家:虎虎生威;如虎添翼;龍行虎步;龍精虎猛!

Apache 2.2 with vhost_alias on Debian mini-HOWTO

Apache2.2 mod_userdir you may setup user-specific directory as http://example.com/~username/ syntax with document root as /home/users/username/public_html, but what if we hope to setup a dynamic mapping for http://some_other_dir.example.com/? mod_vhost_alias can do this for you.

A new life for Rebecca and Edison: we get married :D

After a 11 years relationship with Rebecca, we finally get married on 2010-01-15! It is a new start of both of us :D

白宮群英CMS篇: Drupal

Here is a Drupal related news from a Hong Kong magazine PC Market Vol.856 on 2009-12-22, BizIT, Let's Open section (p.156):

Pages

Subscribe to Edison Wong RSS