Posts

4 线 网线 和 2 线 电话线

cat5 4 pin 1,2,3,6 telephone cable in the middle two.

AC97 与 HD AUDIO 接线方法

Image

make BisonCam work for XP

It also work for the MSI L745 notebook first, use this INF file C:\WINDOWS\OPTIONS\Install\x86\BisonCam.inf ;------------------------------------------------------------------ ;------------------------------------------------------------------ ; ; BisonCam.INF -- This file contains installation information ; For windows NT ; Copyright (c) 2004 ; DSP : ALI-5603C ; Sensor: VGA OVT-7640/7648/7649,MT9V011(MI360),HV7131R ; 1.3M OVT-9620/9630/9640,MT9001C12ST,HV7151SP ; ;------------------------------------------------------------------ ;------------------------------------------------------------------ [Version] Signature="$CHICAGO$" Class=Image ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f} Provider=%VENDOR% CatalogFile=BisonCam.cat DriverVer=08/20/2007,6.32.0.07 ; All PnP devices should be excluded from manual AddDevice Applet list [ControlFlags] ExcludeFromSelect=* [Manufacturer] %Mfg%=CamM5603D.Section [DestinationDirs] DefaultDestDir ...

修複報廢硬盤

许多人遇到BIOS中检测不到硬盘或报错的时候,就将其报废。其实,如果开机后,硬盘在自检时能听到磁盘旋转的声音,估计主电机和控制电路板均无故障,还是有挽回余地的。需要注意的是,硬盘是一种精密的器件,很脆弱,维修前应先将双手洗净,释放掉人体残存的静电再进行操作。    无法找到硬盘的情况   对于出现“HDD NotDetected”错误提示的硬盘,首先检查硬盘外部数据信号线的接口是否有变形,接口焊点是否存在虚焊。排除以上的可能后,取下硬盘后盖,露出电路控制板。拧下控制板上的固定螺丝,将控制板与硬盘主体分离。这时可以看见硬盘主体的两排弹簧片。一排作为主电机的电源,另一排作为硬盘主体的磁头机械臂驱动线圈电源以及硬盘主体与电路控制板间数据传输接口。对于无特殊封装的硬盘,往往可以看见弹簧片与控制电路板对应部位均有灰尘。用脱脂棉蘸无水酒精清洁,对弹簧片变形的部位校形,并除去氧化层,一般情况下均可恢复正常。   如果以上处理无效,那就得打开硬盘主体。选择一个灰尘很少的环境,拧开硬盘前盖的螺丝(有的是用胶粘牢)。取下硬盘的前盖,这时就可清楚地看到盘面。首先用数字万用表检测磁头机械臂驱动线圈是否断路。该线圈的正常阻值为20Ω左右。其次检测磁头上的连线是否断开。每张盘面的两侧均有一个磁头,每个磁头均有两根连线接到磁头机械臂上的集成芯片上。该芯片常见的型号为H1710Q,作用是将磁信号转变为电信号,再送到电路控制板处理。磁头阻值应在23Ω~26Ω之间。若磁头阻值较大,说明磁头损坏。磁头连线与芯片H1710Q相连,H1710Q对应脚阻值应在1.7kΩ左右,若在1.2kΩ以下说明该芯片已被击穿,可与排线一起更换。   若磁头上的连线断路,可用直径0.2mm的优质漆包线取代。一端压在磁头的金属弹片上,另一端焊在H1710Q相应的脚上。注意将漆包线卡在机械臂相应的卡槽内,并用少许502胶水固定,防止硬盘转动时与漆包线相摩擦。将硬盘各部分复原后,最后用702硅胶将硬盘周围封死,防止灰尘进入。由于磁头体积很小,不易将漆包线卡在上面,最好在放大镜下操作。这时千万不可用力过猛,否则会造成磁头损坏,所以要小心加小心。经这样修复开机后硬盘可恢复正常。   提示硬盘出错的情况   对于出现提示“HDD ControllerError”错误的硬盘,大都是由于某种原因造成硬盘主引导记录(MBR)上文件受损。MBR...

Send email by using PHP

if your ISP need SMTP Authentication then you need Pear installed for you php5, and also add one line in your php.ini file: extension=php_gd2.dll require_once "Mail.php"; $from = "Sandra Sender "; $to = "Ramona Recipient "; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "househosting.ca"; $username = "smtp_username"; $password = "smtp_password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo(" " . $mail->getMessage() . " "); } else { echo(" Message successfully sent! "); } ?>

Cannot modify header information - headers already sent by

Solution #1 - no output before header(), setcookie() and other header setting functionsThus, the first solution to the "Cannot modify header information" error is to make sure you are not outputting any content at all before the call to the header() function. Solution #2 - ob_start() The second method consists in calling the ob_start() at the very top of the PHP script like this: ob_start(); This will turn output buffering on. With output buffering the entire PHP script will be processed before any output is sent to the client. Thus all the PHP script will be aware of all the header changes and it will not send any headers until every line has been processed.ob_start() may appear to slow down the loading time on server intensive pages, because the client will not be presented with any fragment of the page until the page is fully processed.

How to load data file to mysql

copy xx.sql file to your mysql\bin forlder than login to mysql mysql> source xx.sql;