<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7703519</id><updated>2011-09-12T14:02:55.142+08:00</updated><title type='text'>Miles Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7703519.post-7600315183294432545</id><published>2011-09-12T13:35:00.008+08:00</published><updated>2011-09-12T14:02:55.164+08:00</updated><title type='text'>Use C language to get Hard Disk Serial Number in Linux</title><summary type='text'>&lt;!-- add brushes here --&gt;/** It gets the hard disk information in this case serial no.* It uses ioctl() system call*/#include &lt;stdio.h&gt;#include &lt;string.h&gt;#include &lt;linux/types.h&gt;#include &lt;linux/hdreg.h&gt;#include &lt;linux/fcntl.h&gt;//int hd_serial(char *searial_no);void trim(char *s);//int main() {    char serial_no[256];    if (hd_serial(serial_no)){        printf("%s",serial_no);    }    return (0);}</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/7600315183294432545/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=7600315183294432545' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7600315183294432545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7600315183294432545'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2011/09/use-c-language-to-get-hard-disk-serial.html' title='Use C language to get Hard Disk Serial Number in Linux'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-6308166772154953851</id><published>2011-08-18T00:02:00.002+08:00</published><updated>2011-08-18T00:10:28.441+08:00</updated><title type='text'>網路看到的笑話幾則</title><summary type='text'>一對夫妻在蜜月旅途中....車突然拋錨~男下車修理~搞了老半天都弄不好~女:天色漸晚了耶~前面有家汽車旅館~我們過去那裡休息~說不定跟上次 一樣~睡一覺後車子就會好了~男:那次是結婚前好不好~這次是真的車子壞了!!!-----------------------------------------------------------------------------------一女從計程車下車，司機突然從車里探出頭：小姐，你像雞！女臉一紅，罵到：你他X的像隻鴨。司機聽了不爽,然後就快速開走了。然後女孩突然想起追著車喊：運將，我相機，我相機！-------------------------------------------------------------------------------------廣東一夥劫匪在搶劫銀行時說了一句至理名言：</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/6308166772154953851/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=6308166772154953851' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/6308166772154953851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/6308166772154953851'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2011/08/blog-post.html' title='網路看到的笑話幾則'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-1493917896700614404</id><published>2011-05-05T10:57:00.004+08:00</published><updated>2011-05-05T11:04:58.843+08:00</updated><title type='text'>Flex3 Localization</title><summary type='text'>http://www.herrodius.com/blog/1231. create a folder in your project src to store your resource bundles (e.g. "locale")2. create a subfolder for each locale you want to implement (e.g. "locale\en_US" and "locale\zh_TW")3. in the locale subfolder, create a resources.properties file and save it as UTF-84. enter the resources in the form of "key=value", like Ant property files   example:   # locale/</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/1493917896700614404/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=1493917896700614404' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1493917896700614404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1493917896700614404'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2011/05/flex3-localization.html' title='Flex3 Localization'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-1212942275843392124</id><published>2011-05-05T10:31:00.009+08:00</published><updated>2011-05-05T10:56:10.838+08:00</updated><title type='text'>Set focus on textfield in Flex3</title><summary type='text'>In Action Script:   login.setFocus();In HTML:    function setFlexAppFocus() {            SetFlexAppMovieObject('CFS').focus();    //TextInputFocus is id in  tag in you HTML file.        }       //        function getFlexAppMovieObject(movieName) {                if (window.document[movieName]){                       return window.document[movieName];                }                if (</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/1212942275843392124/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=1212942275843392124' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1212942275843392124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1212942275843392124'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2011/05/set-focus-on-textfield-in-flex3.html' title='Set focus on textfield in Flex3'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-7257846750544781982</id><published>2010-11-05T10:04:00.008+08:00</published><updated>2010-11-06T23:33:44.088+08:00</updated><title type='text'>利用 vb.net 偵測全域的滑鼠及鍵盤動作</title><summary type='text'>使用windowshooklibhttp://www.vbforums.com/showthread.php?t=436321http://www.code2point.com/Project.aspx?proj=4使用方法就是下載其 WindowsHookLib.dll , 在 .net 專案中加入此參考，Imports WindowsHookPublic Class Form1    Dim WithEvents mHook As New MouseHook    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Try            'Install the mouse hook</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/7257846750544781982/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=7257846750544781982' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7257846750544781982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7257846750544781982'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2010/11/net.html' title='利用 vb.net 偵測全域的滑鼠及鍵盤動作'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-5530329850669240149</id><published>2010-07-14T20:27:00.010+08:00</published><updated>2010-07-27T23:16:12.095+08:00</updated><title type='text'>半形轉全形 (php)</title><summary type='text'>   function n_to_w($strs, $types = '0'){  // narrow to wide , or wide to narrow      $nt = array(          "(", ")", "[", "]", "{", "}", ".", ",", ";", ":",          "-", "?", "!", "@", "#", "$", "%", "&amp;", "|", "\\",          "/", "+", "=", "*", "~", "`", "'", "\"", "&lt;", "&gt;",          "^", "_",          "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",          "a", "b", "c", "d", "e", "f", "g", </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/5530329850669240149/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=5530329850669240149' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/5530329850669240149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/5530329850669240149'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2010/07/php.html' title='半形轉全形 (php)'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-9065280217520906787</id><published>2010-07-14T20:20:00.003+08:00</published><updated>2010-07-14T21:17:50.296+08:00</updated><title type='text'>台北城中扶輪社網址</title><summary type='text'>台北城中扶輪社Rotary Club of Taipei Castlewww.taipei-castle.org.twvar gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));try {var pageTracker = _gat._getTracker("UA-1820724-2");pageTracker._trackPageview();} catch(err) {}</summary><link rel='related' href='http://www.taipei-castle.org.tw' title='台北城中扶輪社網址'/><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/9065280217520906787/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=9065280217520906787' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/9065280217520906787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/9065280217520906787'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2010/07/blog-post.html' title='台北城中扶輪社網址'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-7574281578411215801</id><published>2010-06-22T21:42:00.002+08:00</published><updated>2010-06-22T21:46:36.503+08:00</updated><title type='text'>超肥的Microsoft Office 輸入法 2010</title><summary type='text'>真是厲害， 輸入法竟然能搞到 131.2 MBvar gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));try {var pageTracker = _gat._getTracker("UA-1820724-2");pageTracker._trackPageview();} catch(err) {}</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/7574281578411215801/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=7574281578411215801' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7574281578411215801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/7574281578411215801'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2010/06/microsoft-office-2010.html' title='超肥的Microsoft Office 輸入法 2010'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-8254359389573308379</id><published>2009-09-15T23:27:00.005+08:00</published><updated>2010-07-27T23:30:28.605+08:00</updated><title type='text'>Using MD5 in C language</title><summary type='text'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));try {var pageTracker = _gat._getTracker("UA-1820724-2");pageTracker._trackPageview();} catch(err) {}http://mixtt.blogspot.com/2009/06/c-using-md5-in-c-language.html&lt;!-- add brushes </summary><link rel='related' href='http://mixtt.blogspot.com/2009/06/c-using-md5-in-c-language.html' title='Using MD5 in C language'/><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/8254359389573308379/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=8254359389573308379' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8254359389573308379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8254359389573308379'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2009/09/using-md5-in-c-language.html' title='Using MD5 in C language'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-3384425673113588539</id><published>2009-09-15T22:41:00.009+08:00</published><updated>2010-07-27T23:33:43.684+08:00</updated><title type='text'>Use C language to get MAC Address in linux</title><summary type='text'>&lt;!-- add brushes here --&gt;#include &lt;stdio.h&gt;#include &lt;string.h&gt; /* for strncpy */#include &lt;sys/types.h&gt;#include &lt;sys/socket.h&gt;#include &lt;sys/ioctl.h&gt;#include &lt;netinet/in.h&gt;#include &lt;net/if.h&gt;int main(void) {    int fd;    struct ifreq ifr;    char mac[20];    fd = socket(AF_INET, SOCK_DGRAM, 0);    ifr.ifr_addr.sa_family = AF_INET;    strncpy(ifr.ifr_name, "eth0", IFNAMSIZ-1);    ioctl(fd, </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/3384425673113588539/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=3384425673113588539' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/3384425673113588539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/3384425673113588539'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2009/09/var-gajshost-https-document.html' title='Use C language to get MAC Address in linux'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-8605854999442352930</id><published>2009-05-11T09:56:00.005+08:00</published><updated>2009-05-14T18:21:00.318+08:00</updated><title type='text'>Asterisk 整合 gtalk</title><summary type='text'>gtalk.conf =&gt;[buddy]username=xxx@gmail.comdisallow=allallow=ulawcontext=google-in ;order apparently matters, needs to be placed after username= ?connection=gtalk_accountjabber.conf =&gt;[gtalk_account]type=clientserverhost=talk.google.comusername=yyy@gmail.com/Talk ;; Astersk 的 gtalk 分身，必須要有此帳號secret=zzz ;; yyy@gmail.com 的密碼port=5222usetls=yes ; TLS is required by talk.google.com, you'll get a '</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/8605854999442352930/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=8605854999442352930' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8605854999442352930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8605854999442352930'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2009/05/888nhangup-xxxgmail.html' title='Asterisk 整合 gtalk'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-9045957450758210250</id><published>2009-04-30T23:47:00.007+08:00</published><updated>2009-05-14T18:21:18.421+08:00</updated><title type='text'>Asterisk 整合 VoiceXML</title><summary type='text'>VoiceGluehttp://www.voiceglue.org/安裝說明http://voiceglue.org/wiki/doku.php?id=voiceglue_0.9_installation_instructions因為我是用Gentoo , 所以只好使用困難的安裝方法 :-)經過一番努力安裝完成後，接著就看設定部分http://voiceglue.org/wiki/doku.php?id=voiceglue_0.9_user_guide測試的 Dialplan 為exten =&gt; 6666,1,NoOp("++++ Test voiceglue +++")exten =&gt; 6666,n,Answerexten =&gt; 6666,n,AGI(agi://localhost/url=http%3A%2F%2Flocalhost%2Fvxml%2Fhello.vxml)exten</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/9045957450758210250/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=9045957450758210250' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/9045957450758210250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/9045957450758210250'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2009/04/asterisk-vociexml.html' title='Asterisk 整合 VoiceXML'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-5927346282346185347</id><published>2009-04-30T23:33:00.004+08:00</published><updated>2009-05-14T18:22:47.620+08:00</updated><title type='text'>Asterisk &amp; 中文 TTS</title><summary type='text'>espeakhttp://espeak.sourceforge.net/有支援中文的 TTSasterisk-espeak is a eSpeak text-to-speech module for the Asterisk open-source PBXhttp://asterisk-espeak.sourceforge.net/若是用 asterisk 1.6.x 的版本，可參考以下的說明 patchhttp://www.mail-archive.com/openpkg-cvs@openpkg.org/msg21782.html記得要在 espeak.conf 設定voice=zh如此才會正確的處理中文正確 install 成功後，測試的 Dialplan 如下exten =&gt; 900,1,NoOp("+++++ Test espeak ++++")exten =&gt; 900,n,</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/5927346282346185347/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=5927346282346185347' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/5927346282346185347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/5927346282346185347'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2009/04/asterisk-tts.html' title='Asterisk &amp; 中文 TTS'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-1415524181406890994</id><published>2007-05-28T23:20:00.000+08:00</published><updated>2007-05-28T23:22:07.833+08:00</updated><title type='text'>Asterisk extensions.conf (二)</title><summary type='text'>extensions.conf設計撥號規則 (二)-----------------------------------------------------------------通常我們會將 extensions.conf 切分成好幾個檔,然後再 include 進來 , 這樣比較好做規劃例如: 將從 FXO 進線的撥號規則存入 fxo_incoming.conf ,        從 SIP 進線的撥號規則存入 sip_incoming.conf在 extensions.conf 中 , 就可以用;;; For fxo incoming#include fxo_incoming.conf;;; For sip incoming#include sip_incoming.conf將其檔案 include 進來 , 另外要注意的是有另一種 include ,是 include </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/1415524181406890994/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=1415524181406890994' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1415524181406890994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/1415524181406890994'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2007/05/asterisk-extensionsconf_28.html' title='Asterisk extensions.conf (二)'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-8216198947563987794</id><published>2007-05-23T00:37:00.000+08:00</published><updated>2007-05-23T00:41:37.590+08:00</updated><title type='text'>Asterisk  extensions.conf (一)</title><summary type='text'>Asterisk 可說是目前當紅的 open source IP PBX詳細說明可至 http://www.voip-info.org/wiki/view/Asterisk 查看接下來將會以我所知來說明 Asterisk 的設定與運用extensions.conf設計撥號規則內容如下:;;;撥號規則的環境變數[general];;;預設為 no static=yes;;;預設為 no , 如果 writeprotect=no 且 static=yes , 則當在 CLI command 模式中, 執行 save dialplan,;;;將會儲存目前的撥號規則設定writeprotect=yes;;;如果設定為 yes , 則系統將會依據其判斷猜測其為 BUSY,CONGENSTION或HANGUP而終止通話斷線,強烈建議設定為yesautofallthrough=yes;;;若設定為 </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/8216198947563987794/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=8216198947563987794' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8216198947563987794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/8216198947563987794'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2007/05/asterisk-extensionsconf.html' title='Asterisk  extensions.conf (一)'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-117669433068069174</id><published>2007-04-16T11:15:00.000+08:00</published><updated>2007-04-16T11:32:10.690+08:00</updated><title type='text'>mysql 雙向 replication</title><summary type='text'>mysql Replication-----------------------------1. 兩台主機的 mysql 設定檔   my.cnf   加上   ;;server-id       = 2   server-d        =1   log-bin   binlog-do-db    = db1   binlog-do-db    = db2   binlog-do-db    = db3   binlog-do-db    = db4   ;;master-host     = 192.168.1.22   master-host     = 192.168.1.30   master-user     = ruser   master-password = rpass   master-port     = 3306   master-connect-retry</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/117669433068069174/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=117669433068069174' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/117669433068069174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/117669433068069174'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2007/04/mysql-replication.html' title='mysql 雙向 replication'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-113080892814699122</id><published>2005-11-01T09:34:00.000+08:00</published><updated>2005-11-01T09:35:28.156+08:00</updated><title type='text'>眼睛視網膜病變</title><summary type='text'>最近眼睛右眼看東西, 正中間都有一團黑影 , 導致東西都看不清楚 ,至醫院檢查 , 發現是視網膜病變所引起 , 需要長期休息及作進一步檢查.原因可能是愛情動作片看太多了 , ㄚ~ 不是啦 , 醫生說應該是壓力大 , 且太長時間看電腦螢幕所引起的 .目前正在家休養中 , 可能會休息一兩個月吧~~ 大家努力工作之餘 , 更要保重身體啊~~</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/113080892814699122/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=113080892814699122' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/113080892814699122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/113080892814699122'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2005/11/blog-post.html' title='眼睛視網膜病變'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-112564533589803798</id><published>2005-09-02T15:11:00.000+08:00</published><updated>2005-09-02T15:15:35.903+08:00</updated><title type='text'>在asp.net中處理意外情況</title><summary type='text'>於Global.asax 中的 Application_Error 事件加上以下的內容 , 如此當系統發生意外情況時 , 則會將錯誤訊息 mail 給指定的人 , 並將網頁導至Maintenance.aspxSub Application_Error(ByVal sender As Object, ByVal e As EventArgs)        ' 發生錯誤時引發        If (System.Web.HttpContext.Current.Request.Url.Authority &lt;&gt; "localhost") Then            ''' Get the Exception object wrapped in the InnerException property             Dim unhandledException As </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/112564533589803798/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=112564533589803798' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112564533589803798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112564533589803798'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2005/09/aspnet.html' title='在asp.net中處理意外情況'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-112409951770191992</id><published>2005-08-15T17:37:00.000+08:00</published><updated>2005-08-15T17:51:57.713+08:00</updated><title type='text'>利用crystal report 直接匯出pdf檔給client</title><summary type='text'>'''利用crystal report 直接匯出pdf檔給client'''在作業目錄底下新建一個reports目錄,權限設定為everyone可讀寫'''記得要imports 以下兩項'''Imports CrystalDecisions.CrystalReports.Engine'''Imports CrystalDecisions.Shared'''      Dim RptDoc As New ReportDocument        Dim rptFile As String = Server.MapPath("license.rpt")        '''        RptDoc.Load(rptFile)        ''' 登入資料庫        Dim logonInfo As New TableLogOnInfo        Dim rptTable </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/112409951770191992/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=112409951770191992' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112409951770191992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112409951770191992'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2005/08/crystal-report-pdfclient.html' title='利用crystal report 直接匯出pdf檔給client'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-112409847184574000</id><published>2005-08-15T17:18:00.000+08:00</published><updated>2005-08-15T17:34:48.060+08:00</updated><title type='text'>利用window.open開啟新視窗</title><summary type='text'>利用asp.net(VS.net)開發web程式, 相信很多人都知道, 一個aspx的網頁只能有一個form, 也就是說如果要在程式中利用button按鈕點一下後,連結到新的視窗,一般就只能靠java script 來完成了.最好是利用 window.open, 而不要使用window.showModalDialog , 因為後者並非標準的語法,只有IE能解譯.例如: Private Sub BTP_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTPestUse1.LoadDim JavaScript As StringDim Url As StringUrl = "'pChoice.aspx?pestcd=' + " &amp; "Form1." &amp; Me.TBP.ClientID &amp; ".value" '</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/112409847184574000/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=112409847184574000' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112409847184574000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/112409847184574000'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2005/08/windowopen.html' title='利用window.open開啟新視窗'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-111633831548896736</id><published>2005-05-17T21:55:00.000+08:00</published><updated>2005-05-17T21:58:35.493+08:00</updated><title type='text'>取得 MCAD 認證(Microsoft Certified Application Developer )</title><summary type='text'>之前就差一科就能取得 MCAD , 拖了好久 , 終於在昨天通過了 , 耶~~~Microsoft Certification Status Certification Version  Date Achieved   Microsoft Certified Application Developer   May 16, 2005   For Microsoft .NET  May 16, 2005  Microsoft Certified Professional   Dec 29, 2003 Microsoft Certification Exams Completed Successfully Exam ID Description  Date Completed  306 Developing and Implementing Windows®-based </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/111633831548896736/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=111633831548896736' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/111633831548896736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/111633831548896736'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2005/05/mcad-microsoft-certified-application.html' title='取得 MCAD 認證(Microsoft Certified Application Developer )'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-110079110091541209</id><published>2004-11-18T22:59:00.000+08:00</published><updated>2007-05-10T15:30:32.274+08:00</updated><title type='text'>桂林遊</title><summary type='text'>2004年11月6日至2004年11月10日共五天 , 與父母及老婆參加鳳凰旅行社至桂林遊玩.其中印象比較深刻的是坐船遊漓江,真不愧是百里畫廊,沿途風光相當漂亮,真像是置身於山水畫中.張藝謀導演的印象劉三姐實景表演真是精彩,令人難忘!堯山更是不可不去,坐覽車大約20分鐘上堯山,觀看整個桂林,飄渺之間,如詩如畫.在桂林買東西,大概都可以標價的2折價錢購買到,不殺價就是冤大頭了 :P</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/110079110091541209/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=110079110091541209' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/110079110091541209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/110079110091541209'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/11/blog-post.html' title='桂林遊'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109815322529463221</id><published>2004-10-19T10:31:00.000+08:00</published><updated>2004-10-19T10:33:45.293+08:00</updated><title type='text'>壓縮 MS SQL 2000 中的資料檔及交易明細檔</title><summary type='text'>use 資料庫名稱Backup Log 資料庫名稱 with Truncate_onlyDBCC ShrinkDataBase (資料庫名稱)  --壓縮資料檔 --&gt; *.mdfDBCC ShrinkFile (資料庫名稱_log)  --壓縮交易紀錄檔 --&gt; *.ldf</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109815322529463221/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109815322529463221' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109815322529463221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109815322529463221'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/10/ms-sql-2000.html' title='壓縮 MS SQL 2000 中的資料檔及交易明細檔'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109697009196565301</id><published>2004-10-05T17:50:00.000+08:00</published><updated>2004-10-05T17:58:18.473+08:00</updated><title type='text'>Freebsd and Debian</title><summary type='text'>前一陣子因工作需求,同時使用Freebsd與Debian,Freebsd 的 port 與 Debian 的 apt 都相當好用,只不過同時使用這兩個作業系統時,常會指令混淆~~ :-)</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109697009196565301/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109697009196565301' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109697009196565301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109697009196565301'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/10/freebsd-and-debian.html' title='Freebsd and Debian'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109359539804159293</id><published>2004-08-27T16:28:00.000+08:00</published><updated>2004-08-27T16:29:58.040+08:00</updated><title type='text'>使用nagios 配合 twsms 監測系統</title><summary type='text'>先說明, 以下是用 debian 完成 , 安裝細節不多說 還有必須先至 http://www.twsms.com 購買通數 這只是簡單說明, 詳細使用還請自行查看 Document 1. 先安裝好 apache2 2. 安裝 nagios     apt-get install nagios     使用 htpasswd2 建立使用者     例如要建立 miles 這個使用者     htpasswd -c /etc/nagios/htpasswd.users miles     輸入密碼即可     chmod 640 htpasswd.users  3. nagios 的設定檔是在 /etc/nagios 4. 設定好 apache2 與 nagios 的連結      cd /etc/apache2/conf.d      ln -s /</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109359539804159293/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109359539804159293' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109359539804159293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109359539804159293'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/08/nagios-twsms.html' title='使用nagios 配合 twsms 監測系統'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109299729996343482</id><published>2004-08-20T18:11:00.000+08:00</published><updated>2004-08-20T18:21:39.963+08:00</updated><title type='text'>使用 rsync 來做備份</title><summary type='text'>rsync 的安裝方式很簡單, 在此就不多說設定檔也很簡單, 也不詳述client 端執行 rsync 時並不需要是 root , 一般 user 也可以目的端的目錄權限必須設定好, 否則備份會有問題喔例如: 在 server 端中的 rsyncd.conf 中設定 , [webs]path = /var/www/testauth users=milesuid=milesgid=users在 clinet 端執行rsync -avzP --delete --password-file=/home/miles/rsync/rsyncd.secrets /var/www/test/ miles@my.server::webs則其中server 端的 /var/www/test 目錄必須要能有 miles:users 的讀寫權限喔</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109299729996343482/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109299729996343482' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109299729996343482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109299729996343482'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/08/rsync.html' title='使用 rsync 來做備份'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109077081975391742</id><published>2004-07-25T23:43:00.000+08:00</published><updated>2004-07-25T23:53:39.753+08:00</updated><title type='text'>挪威的森林</title><summary type='text'>剛剛開車時聽到廣播傳來伍佰的歌曲-挪威的森林讓我又想起以前在高雄岡山當兵時的情形,當時剛下部隊,很菜,被派到大門口支援一分鐘待命班,那時後一個快退伍的下士班長每天都用他那台破破的隨身聽播放伍佰的歌曲.真是一段很令人難忘的軍旅生活~~陸軍獨立64旅戰車742營部連.</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109077081975391742/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109077081975391742' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109077081975391742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109077081975391742'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/blog-post_25.html' title='挪威的森林'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109058388159797235</id><published>2004-07-23T19:53:00.000+08:00</published><updated>2004-07-23T19:58:01.596+08:00</updated><title type='text'>分離式冷氣還是比較好</title><summary type='text'>上星期在家裡的另外一間房間安裝了分離式冷氣,以方便若家人或朋友來住時就有冷氣可吹.果然還是分離式的冷氣較好, 吹一下子房間就很涼了.這幾天剛好家人來, 正好派上用場~~</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109058388159797235/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109058388159797235' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109058388159797235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109058388159797235'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/blog-post_23.html' title='分離式冷氣還是比較好'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109048336262732481</id><published>2004-07-22T16:01:00.000+08:00</published><updated>2004-07-22T16:02:42.626+08:00</updated><title type='text'>使用 Google Web APIs 及 php 實現網站內容全文檢索</title><summary type='text'>使用 Google Web APIs 及 php 實現網站內容全文檢索1. 先至   http://www.google.com/apis/   申請一個帳號 , 並且取得一組序號2. 至 http://www.digitalpoint.com/tools/search/   下載 search.zip , 並將其解壓縮至網頁目錄3. 修改 results.php    將 $key="1234567890";    更改為 google 給你的那一組序號     將 $site="www.yoursite.com"   更改為你想要查詢的網站4. 編寫測試網頁   在同一目錄下, 編寫一個網頁 mysearch.big5   其內容為   &lt;HTML&gt;   &lt;HEAD&gt;   &lt;META NAME="Content-Type" Content="</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109048336262732481/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109048336262732481' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109048336262732481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109048336262732481'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/google-web-apis-php.html' title='使用 Google Web APIs 及 php 實現網站內容全文檢索'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109042839971947598</id><published>2004-07-22T00:46:00.000+08:00</published><updated>2004-07-22T00:46:47.566+08:00</updated><title type='text'>MnoGoSearch 網站內容全文檢索</title><summary type='text'>MnoGoSearch 網站內容全文檢索網頁:http://www.mnogosearch.org/MnoGoSearch 3.2 版以後已支援雙位元的字碼 , 如繁體中文, 簡體中文, 日文等等安裝方式:請先至 http://www.mnogosearch.org/下載軟體將其解壓縮後, 執行 ./configure --help 可以查看其相關設定例如要使用postgresql的資料庫, 並加入雙位元字的支援, 則下./configure --with-extra-charsets=all  --with-pgsql執行make , 如果沒有問題, 則執行 make install預設程式會安裝在 /usr/local/mnogosearch 中將 /usr/local/mnogosearch/bin/search.cgi 覆製到 Apache</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109042839971947598/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109042839971947598' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042839971947598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042839971947598'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/mnogosearch.html' title='MnoGoSearch 網站內容全文檢索'/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109042828242991831</id><published>2004-07-22T00:37:00.000+08:00</published><updated>2004-07-22T00:44:56.346+08:00</updated><title type='text'>於 Mandrake 9.2上安裝SASL for postfix </title><summary type='text'>於 Mandrake 9.2上安裝SASL for postfix 必要套件cyrus-sasl-2.1.15-4mdklibsasl2-devel-2.1.15-4mdklibsasl2-2.1.15-4mdklibsasl2-plug-login-2.1.15-4mdklibsasl2-plug-plain-2.1.15-4mdkSASL的設定1.cd /usr/lib/sasl2 2.vi smtpd.conf , 其內容為   pwcheck_method: saslauthd   mech_list:plain login3.查看saslauthed 是否有啟動,若沒有, 則執行 service saslauthed startpam的設定1. cd /etc/pam.d2. ln -s imap smtp3. ln -s imap mail</summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109042828242991831/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109042828242991831' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042828242991831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042828242991831'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/mandrake-92sasl-for-postfix.html' title='於 Mandrake 9.2上安裝SASL for postfix '/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703519.post-109042670902001792</id><published>2004-07-22T00:18:00.000+08:00</published><updated>2004-07-23T00:29:27.083+08:00</updated><title type='text'>使用 iptables 設定基本的單機版防火牆 </title><summary type='text'>使用 iptables 設定基本的單機版防火牆 #!/bin/sh# 簡單的單機版防火牆設定範例 # 重設所有的規則 iptables -Fiptables -t nat -Fiptables -t mangle -F # 定義預設的規則 iptables -P FORWARD DROPiptables -P INPUT DROP iptables -P OUTPUT ACCEPT # 允許所有本機的連線 iptables -A INPUT -i lo -j ACCEPT # 允許 ssh 連線 , 其他的服務請自行設定 iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT # iptables -A INPUT -i eth0 -p tcp --dport 23 -j ACCEPT # </summary><link rel='replies' type='application/atom+xml' href='http://laimiles.blogspot.com/feeds/109042670902001792/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703519&amp;postID=109042670902001792' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042670902001792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703519/posts/default/109042670902001792'/><link rel='alternate' type='text/html' href='http://laimiles.blogspot.com/2004/07/iptables.html' title='使用 iptables 設定基本的單機版防火牆 '/><author><name>Miles</name><uri>http://www.blogger.com/profile/13824289356582470076</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
