Blogs

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_...):
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

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):

VirtualBox 3.1 + iSCSI on Debian Lenny mini-HOWTO

NOTE: Please refer to VirtualBox 4.0.2 + iSCSI on Debian Squeeze mini-HOWTO for updated information.

VirtualBox 3.1 coming with a new feature "Teleportation" (aka live migration). With live migration you can port a running client from one host to another, without any service down time. It is for sure a enterprise-ready killer function (well... even KVM and QEMU already support that for some days before...). Therefore the next question should be: any pre-requirement for using VirtualBox's live migration? According to official user manual:

The two virtual machines on the source and the target must share the same storage (hard disks as well as floppy and CD/DVD images). This means that they either use the same iSCSI targets or that the storage resides somewhere on the network and both hosts have access to it via NFS or SMB/CIFS.

IMHO, iSCSI should be the best choice in this case: it is simple in architecture and faster when compare with using NFS/SMB/CIFS, it is native and simply supported by some SOHO SAN/NAS, and you may even share an entire hard disk to your virtual client machine as like as normal physical disk without abstract with NFS/SMB/CIFS (personally, this is my original and main target for using iSCSI).

Any drawback? Yes, for sure: you will not able to work with snapshot. This is because snapshot only work with *.vdi or *.vmdk

This mini-HOWTO with guide you though the installation of iSCSI target on Debian Lenny, some demo setup for sharing your physical hard disk or a single raw file image with iSCSI, and howto setup an iSCSI hard disk within VirtualBox 3.1.

Pages

Subscribe to RSS - blogs