Aug 292010

If you want to show your DV video in your iPad, how can you do? I will tell you a software which can transfer your DV AVCHD video directly to iPad and display them by the best iPad video format. My DV is Canon iVIS HF S11. The following is the details.

  • Download the software, Xilisoft iPad Magic from here and install it.
  • power on Canon iVIS HF S11 and and set the DV to video module.
  • Connect  Canon iVIS HF S11 to Computer and select the type of device for the USB connection is Computer/Printer.
  • Connect iPad to computer.
  • Run xilisoft iPad Magic, open the AVCHD video folder in canon disk, Example as Computer > CANON(M) > AVCHD > BDMV > STREAM. Drag the video files (*.mts) to iPad.
  • Xilisoft iPad Magic will convert the *.MTS file to mp4 file that the iPad supported and transfer them to iPad.
Jul 062010

I install xHelp module in my XOOPS site and allow anonymous users ticket submission, in order to avoid spam, I add the XOOPS User Register Form captcha function to xHelp module.

My System Overview:
XOOPS 2.4.5 RC3
xHelp 0.78b
php Version 5.2.13

Step 1, Edit the template file, the template for anonymous users add ticket page is xhelp_ anon_addTicket.html. You can find it here, XOOPS Control Panel Home -> Template Set Manager -> xHelp[list].

Edit this template file, add the below lines to after ‘<{* End custom field code *}>’ and before ‘<tr id=”addButtons”>’


Step 2, Edit the anon_addTicket.php file, you can find it here, ‘xoops\modules\xhelp\’, add the below lines to after ‘$xoopsTpl->assign(‘xhelp_mimetypes’, $mimes);’, about lines 82 of source file,

$xhelpCaptcha = new XoopsFormCaptcha();
$xhelpCaptchaCaption = $xhelpCaptcha->getCaption();
$xhelpCaptchaRender = $xhelpCaptcha->render();
$xoopsTpl->assign('xhelp_captcha_caption', $xhelpCaptchaCaption);
$xoopsTpl->assign('xhelp_captcha_render', $xhelpCaptchaRender);

add the below lines to before ‘if(!empty($errors)){‘, about lines 283 of source file,

$xoopsCaptcha = XoopsCaptcha::getInstance();
if (!$xoopsCaptcha->verify()) {
$xhelpCaptchaErrorMessage = $xoopsCaptcha->getMessage();
$message = $xhelpCaptchaErrorMessage;
header("Location: ".XHELP_BASE_URL."/anon_addTicket.php");

Unresolved: Show the confirmation code validate error message.

Jun 302010

Install Drupal with Nginx, default, you can’t enable the Clean URL function, you have to edit nginx.conf file and add the URL rewrite rules.

If Drupal install in the root directory,

if (!-e $request_filename) {
rewrite  ^/(.*)$   /index.php?q=$1  last;

if drupal in a subdirectory,

if ($request_uri ~* ^.*/.*$) {
rewrite ^/(\w*)/(.*)$  /$1/index.php?q=$2 last;
Jun 202010

The default title of  xhelp form, action and button are ‘Log Ticket’, if you will change it, open the file, /modules/xhelp/language/english/main.php, and position to these lines,

161: define('_XHELP_TITLE_ADDTICKET', 'Log Ticket');

340: define('_XHELP_MENU_LOG_TICKET', 'Log Ticket');

350:define('_XHELP_BUTTON_ADDTICKET', 'Log Ticket');

XOOPS Version: 2.4.5 RC3
PHP Version: 5.2.13
xhelp Version: 0.78(Beta)

Jun 202010
  • Open ‘/modules/smartfaq/class/faq.php’,
  • Position to line 1311,
    $grantedFaq->add(new Criteria('faqid', "(".implode(',', $faqsGranted).")", 'IN'), 'OR');


  • Change these line to
    $grantedFaq->add(new Criteria('faq.faqid', "(".implode(',',  $faqsGranted).")", 'IN'), 'OR');


  • Position to line 1408,
    $sql .= ' AND faqid IN ('.implode(',', $items).')';
  • Change these line to
    $sql .= ' AND faq.faqid IN ('.implode(',', $items).')';

My System Overview:

XOOPS Version: 2.4.5 RC3
PHP Version: 5.2.13
SmartFAQ Version: 1.0.8

Taken from:

Jun 012010

My WordPress host on Dreamhost share hosting, it’s superexcellence, but, you know, Dreamhost has the 7M MAX upload filesize limit, so I can’t do something. I checked the Dreamhost Discussion Forum and google www, find a real and simple way to resolve it. Here’s how:

  1. Set up your domain for FastCGI
    Login your Dreamhost, enter Manage Domains, Edit your domain setup, in Web Options->PHP mode, select ‘PHP 5 FastCGI’, as below: 

    PHP5 FastCGI

    PHP5 FastCGI

  2. Download DreamHost Custom PHP.ini from DeamHost Scripts and Tips.
  3. Extract the dh-phpini.php from and upload it to you website root.
  4. Open dh-phpini.php in you browse. Example:
  5. Then, this result shows,

    Install Completed

    Install Completed

  6. After install, this script create ‘cgi-bin’ folder in you website root, including ‘php.ini’ files in the folder, and add this lines in you .htaccess file, AddHandler fastcgi-script fcg fcgi fpl
    AddHandler php-fastcgi .php
    Action php-fastcgi /cgi-bin/dispatch.fcgi
  7. Default, the Max upload file size increase to 20M, if you want to change to more, edit php.ini file in ‘cgi-bin’ folder like this,post_max_size = 50M
    upload_max_filesize = 50M

May 252010

My system: Windows x64, Nexus One, Android version 2.1 update1, Build number ERE27

  • Download the Android 2.2 firmware from here.
  • Rename the ‘‘ file to ‘‘ and copy it to SD card.
  • Power down Nexus One.
  • Hold down the ‘Volume Down’ button and press the ‘Power’ button.
  • In the list, press the ‘Volume Down’ button, scroll down to ‘recovery’ and press the ‘Power’ button.
  • When the triangle with an exclamation point symbol show, press the ‘Power’ and ‘Volume Up’ buttons at the same time.
  • In the next screen, show the error: “E:Can’t open /cache/recovery/command“, don’t  worry about it, press ‘Volume Down’ button, select ‘Apply’ from the menu and click ‘Trackball’.
  • Waiting for update run their course

After the Nexus One auto reboot,  Click ‘Settings’ and ‘About phone’, Android version: 2.2, Build number: FRF50