<?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-4877352561605124077</id><updated>2012-01-21T16:28:55.669+08:00</updated><category term='程式實作'/><category term='好用軟體'/><category term='powerbuilder'/><category term='jQuery'/><category term='javascript'/><category term='SQL'/><category term='網頁技術'/><category term='推荐廠商'/><category term='C/C++'/><category term='閱讀'/><category term='程式理論'/><category term='問答集'/><category term='講座心得紀錄'/><category term='電子電路DIY'/><category term='railo'/><category term='生活碎碎念'/><category term='ColdFusion'/><category term='cookie'/><category term='網站推薦'/><category term='window小技巧'/><title type='text'>電波幻想</title><subtitle type='html'>IT 大頭症的生活，PowerBuilder、Coldfusion心得貼文</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-8563553996778752445</id><published>2012-01-20T17:58:00.000+08:00</published><updated>2012-01-20T17:58:54.462+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>programming DLL using C/C++ for Powerbuilder external function</title><summary type='text'>真的，用PowerBuuilder的人實在太少了，再加上又會寫C語言作為輔助的更是寥寥可數，只好自己用功一點『自學』了。

C語言有很強大的功能，但每種版本的C語言又有許多的不一樣，真的學起來相當辛苦，如果電腦原理基礎觀念不好，操作C語言可能真的會成為夢饜，雖然C++與C#有許多強大的功能與函式，但是作為可以被『異種』程式語言呼叫的獨立函式庫，可能就非常不理想，因此需要撰寫很標準的C語言，讓其他程式可以使用就是一個原則(這是我的想法，如果你有不同的意見歡迎提出)。

不過C語言會由於編譯器的不同而有不太一樣的指令方式。
例如，我的開發環境在Visual Studio 2005底下，使用到某些C指令就會有所不太一樣，像是：

strcpy =&gt; strcpy_s
strdup =&gt; _scrdup
等等，所以我列的程式碼都是在這樣的環境底下設計的，若需要使用到原本C的古老指令，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/8563553996778752445/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=8563553996778752445&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8563553996778752445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8563553996778752445'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2012/01/programming-dll-using-cc-for.html' title='programming DLL using C/C++ for Powerbuilder external function'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-IC78KYvt6m8/TxkSEQh3-_I/AAAAAAAAAd0/GdOkT9UWk9s/s72-c/C-01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2182228644106641297</id><published>2012-01-09T17:00:00.000+08:00</published><updated>2012-01-09T17:30:17.391+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>利用 coldfusion 實作 CAPTCHA 驗證功能</title><summary type='text'> 我當然知道這樣輸入很沒效率，但是這是目前比較好的防廣告文手段。

CAPTCHA，中文常被稱為『驗證碼』，其全名為 Completely Automated Public Turing test to tell Computers and Humans Apart (全自動區分計算機和人類的圖靈測試)。媽呀，好長的名字！！！

需要詳細瞭解者可以看中文版維基的解釋或是英文版本的。

如果需要輕鬆一點的可以看看 直角兄-淺談各式各樣的網路圖形驗證碼(Captcha)

因為網路上我真的找不太到中文關於使用原生 CFML 來設計 CAPTCHA 驗證碼的文章，

真的有點感嘆，所以就自己動手寫起來以備日後的紀錄與查找。

原始碼出處：http://www.bennadel.com/blog/873-Using-CAPTCHA-In-ColdFusion-8.htm

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2182228644106641297/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2182228644106641297&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2182228644106641297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2182228644106641297'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2012/01/captcha-for-coldfusion.html' title='利用 coldfusion 實作 CAPTCHA 驗證功能'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-t-W-it_Qu-w/TwqYz9rqCSI/AAAAAAAAAds/ImeNi3mVa5w/s72-c/%25E8%258B%25B1%25E6%2596%2587captcha%25E5%259C%2596.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2898874871209859588</id><published>2012-01-04T11:47:00.000+08:00</published><updated>2012-01-09T18:27:23.675+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>SQL [Sybase] 於輸出數值前方補上0</title><summary type='text'>參考來自這篇文章，只是 Sybase SQL 的指令不如 Microsoft 來得多，所以改寫成自己要的方式。

很多時候，公家機關特別喜歡的EDI格式都是固定長度的欄位資料，尤其是數字前面要補零的。

在 SQL 語法上就沒那麼便利像 Powerbuilder 的 String 指令，可以直接給一個 Format，

因此就需要一點變通了，

先來看一看舊式寫法好了，這是使用長度計算後的捕入方式：


DECLARE @Number INT ,@Digits INT ,@Result CHAR(8)

SELECT @Number  = 123

SELECT @Digits = 8

SELECT replicate('0',@Digits - char_length(Convert(varchar , @Number)))+Convert(varchar , @Number)


</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2898874871209859588/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2898874871209859588&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2898874871209859588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2898874871209859588'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2012/01/sqlsybase-set-fix-length-prefix-0-in.html' title='SQL [Sybase] 於輸出數值前方補上0'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7275912061397965012</id><published>2011-12-29T13:15:00.000+08:00</published><updated>2011-12-29T17:08:13.640+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>CFSCRIPT是什麼？</title><summary type='text'>
來聊一下什麼是 CFSCRIPT 吧：

ColdFusion 使用的基礎語言是 CFML ，原文：ColdFusion Markup Language。

意思是 Coldfusion 標記語言，就跟 HTML 一樣屬於標記式 ( tag ) 的程式語法。

相關的資訊可以在維基網站查得到，這裡不再多述。

那麼有了 CFML 後為什麼又需要 CFSCRIPT 了呢？



先看一下 CFML 描述一段程式碼：

&lt;body&gt;
  &lt;cfset a = 10&gt;
  &lt;cfif a EQ 9&gt;
    &lt;cfset a = 100&gt;
  &lt;/cfif&gt;
  &lt;h1&gt;&lt;cfoutput&gt;the a is #a#&lt;/cfoutput&gt;&lt;/h1&gt;
&lt;/body&gt;


然後再看 CFSCRIPT 描述方式：

&lt;body&gt;
  &lt;cfscript&gt;
    a = 10;
    if (a </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7275912061397965012/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7275912061397965012&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7275912061397965012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7275912061397965012'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/12/what-is-cfscript.html' title='CFSCRIPT是什麼？'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-3710264850894616039</id><published>2011-12-28T18:39:00.000+08:00</published><updated>2011-12-29T17:06:05.407+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Coldfusion如何使用編/解碼</title><summary type='text'>以下程式碼可能需要CF9以上的版本，目前測試 Railo 3.3 可以正常運作。

傳遞資料的時候有時候須要將資料進行編碼或是解碼，

雖然 javascript 可以完成這樣的工作，

但有時候因為隱匿的關係不希望使用者端解譯其運作原理，所以最好是在 Server 端完成。

Coldfusion 可以處理基本的編解碼有三種形式：




Hex: 
use the characters 0-9 and A-F to represent the hexadecimal value of each byte; for example, 3A.

UU: 
use the UNIX UUencode algorithm to convert the data.

Base64: 
use the Base64 algorithm to convert the data, as </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/3710264850894616039/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=3710264850894616039&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3710264850894616039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3710264850894616039'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/12/encodingdecoding-coldfusion.html' title='Coldfusion如何使用編/解碼'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-1284636908921896187</id><published>2011-12-27T17:51:00.000+08:00</published><updated>2011-12-28T11:18:29.006+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cookie'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>在CFSCRIPT下使用Cookie</title><summary type='text'>Coldfusion繼續來玩Cookie吧，

注意下面的操作可能需要CF9以上的版本，Railo 3.3 以上的版本執行上沒有問題。

繼上一篇 Using cookie in CFML 之後，如果想在 Cfscript 中使用cookie的操作要怎麼辦？

目前尋遍 adobe 官方文件得到的結果是：

Direct assignment of Cookie scope memory-only variables. You cannot use 
direct assignment to set persistent cookies that are stored on the 
user's system.
真是沒輒！！

但是還是有辦法操作的，就是利用 cf-tag 與 cfscript 混用：

首先，寫一段處理 cookie 的 Function ：


&lt;</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/1284636908921896187/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=1284636908921896187&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1284636908921896187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1284636908921896187'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/12/using-cookie-in-cfscript.html' title='在CFSCRIPT下使用Cookie'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-746360549419152813</id><published>2011-10-05T16:05:00.001+08:00</published><updated>2012-01-09T18:30:07.866+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>CFSCRIPT 基本陳述式</title><summary type='text'>這段是給我自己常常忘記如何使用的註記：

ColdFusion 的標準 tag 語法法以外，還有 script 語法，

下面是基本的 script 語法使用方式：


script語法是包在一個 &lt;cfscript&gt; ... &lt;/cfscript&gt; 之間的

每一行指令要用semicolon ; (分號)結尾，但備註與{大括號}結尾不用加
註解方式

//這是單一行的註解
mojo = 1; //這是放在指令後面的註解
/*
    這是多行的
    註解
*/


設定變數

foo = "foo bar";




IF / Else IF / Else判斷式

if (fruit IS "apple"){
        WriteOutput("I like Apples");
}
else if (fruit IS "orange"){
        </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/746360549419152813/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=746360549419152813&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/746360549419152813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/746360549419152813'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/10/basic-statements-of-cfscript.html' title='CFSCRIPT 基本陳述式'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6888834360298672605</id><published>2011-09-27T16:59:00.001+08:00</published><updated>2011-09-27T17:18:24.145+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='電子電路DIY'/><title type='text'>耳機擴大器DIY</title><summary type='text'>由於公司客服部門並不是獨立的隔離單位，接電話時常常受到其他部門的聲音影響。

雖然是客服人員帶著客服耳機聽電話，但由於客服耳機既不是全罩式，也不是雙耳式，

所以客服人員老是抱怨客戶來電聲音聽不清楚，

然而，電話機音量已經調整到最高了，效果依然不理想。

後來想到利用耳機擴大器來增加話筒音量，

可是網路查了又查，即便是網路拍賣的最便宜的也要近千元，

況且又不能直接使用，因為客服專用耳機的接頭就不太一樣，所以一定要改裝，

這樣下來，十幾部的客服電話的花費就會增加許多，

天啊，我只要簡單的把耳機音量擴大啊!!?

所以找上了一個國外專門自己DIY耳機的網站
http://gilmore2.chem.northwestern.edu/projects/index.htm 的 A Pocket Headphone Amplifier 章節

這個網站的幾乎都是愛好者的聚落，文件資源豐富</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6888834360298672605/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6888834360298672605&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6888834360298672605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6888834360298672605'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/op2134-headphone-amplifier.html' title='耳機擴大器DIY'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-oHgnROnro3k/Tn1oiAfU5yI/AAAAAAAAAcs/_2ZnVNeFeMo/s72-c/OP2134-A%25E7%25B5%2584%25E9%259B%25BB%25E8%25B7%25AF.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7415564810013106234</id><published>2011-09-24T10:00:00.000+08:00</published><updated>2011-09-27T17:19:29.072+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>在Powerbuilder下使用API執行Ping指令</title><summary type='text'>利用 Windows 現成的 API 來實現這個功能
1.定義需要使用的結構變數
str_wsadata

unsignedinteger  version
unsignedinteger  highversion
character  description[257]
character  systemstatus[129]
unsignedinteger  maxsockets
unsignedinteger  maxupddg
string  vendorinfo

str_inaddr

unsignedlong  s_addr

str_ip_option_information

character  ttl
character  tos
character  flags
character  optionssize
unsignedlong  optionsdata

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7415564810013106234/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7415564810013106234&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7415564810013106234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7415564810013106234'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/powerbuilder-using-icmp-ping-with-api.html' title='在Powerbuilder下使用API執行Ping指令'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-5964347735314533578</id><published>2011-09-23T10:00:00.000+08:00</published><updated>2011-10-27T16:50:33.153+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>sizeof in powerbuilder</title><summary type='text'>PowerBuder 開發資料庫應用程式是相當的方便，

但是對於比較低階的資料處理，常常顯得捉襟見肘，

像是有使用到外部 API 時，需要傳遞變數，更多時候都需要一並傳遞該變數的長度，

此時，如果變數是很單純的，例如：char、integer、long 等，

而這些變數長度大致上都可由 help 來查得，

但是對於比較複雜的變數例如 structure 那就真的麻煩了，尤其是 structure 裡面又包 structure，

若是學過 C/C++ 的人都知道裡面有個 sizeof(var) 的函數，

但唯獨在 PowerBuilder 裡面就是沒有，

這也讓開發者真的挫折不少，每次都要自己算。

網路上我找了很久，終於找到可以實用的方法。

所以底下實做一個物件 nvo_sizeof (PB10) 來完成這個 PowerBuilder 所缺少的部份：

1.</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/5964347735314533578/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=5964347735314533578&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5964347735314533578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5964347735314533578'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/sizeof-in-powerbuilder.html' title='sizeof in powerbuilder'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2396479369453263374</id><published>2011-09-22T13:17:00.000+08:00</published><updated>2011-09-22T13:30:48.574+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Javascript的Array中文排序</title><summary type='text'>續上一篇，

資料讀取到 Array 以後，偶爾使用者會需要排序這些列表資料，

當然 javascript array 有 sort 這個方法來排序，只是這個排序，

只比較合適於內容值為數值的排序，對於文字的排序就不怎麼靈光，不好用了。

因此 javascript 提供的另外一種排序方式 就比較合適文字/中文的排序方式：



//SORT data
function sortDW1(field,kind){
    dwset.sort(function(a,b){
        if (kind=="A"){
            return a[field].localeCompare(b[field])
        }else{
            return b[field].localeCompare(a[field])
        };
    }</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2396479369453263374/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2396479369453263374&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2396479369453263374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2396479369453263374'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/javascript-array-sort-by-localecompare.html' title='Javascript的Array中文排序'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6289137883351796400</id><published>2011-09-16T14:30:00.000+08:00</published><updated>2011-09-22T13:18:29.298+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>將SQL讀出的資料暫存到JavaScript的Array以方便利用</title><summary type='text'>有時候網頁需要讀取列表資料的時候，

通常我會把 SQL 執行語法交由另外一個 Coldfusion page 去執行，

然後取得回傳的內容並且儲存起來。

(這個方式當然是使用 ajax 方式，才不會動不動就要重新 RUN 一次版面)

為什麼要這麼做？

因為多數的時候，這個列表內容可能非常多(1~2千筆)，

因此，這個列表就需要動用到分頁顯示，

然而，若是以前的作法是，每次點擊不同的分頁，就必須重新呼叫 SQL 查詢，

並只過濾出我需要顯示的範圍，而這種方式的處理，資料庫讀取就變得相當頻繁，


並且也會使得資料庫效能低落，當然也可以利用 Coldfusion 的 cache 保留，

只是這個保留的時間有時候就是很難拿捏，

所以我想：如果使用者讀取的列表一次到位，並保存在使用者端，

直到使用者重新操作查詢或是關閉頁面，都可以一直重複操作這些已經取得的資料，

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6289137883351796400/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6289137883351796400&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6289137883351796400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6289137883351796400'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/store-sql-retrieve-result-data-to.html' title='將SQL讀出的資料暫存到JavaScript的Array以方便利用'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7098544548071584927</id><published>2011-09-10T10:00:00.000+08:00</published><updated>2011-09-10T10:00:02.987+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>背景讀取 DataWindow 的方法</title><summary type='text'>很多時候，DataWindow 的設計目的在於監視列表的資料，尤其是會自動定期更新的列表。

譬如說，我有一個紀錄狀態的 Table ，裡面紀錄的狀態一直在改變，

因此，我會需要一個 DataWindow 定時的去 Retrieve 這些紀錄資料，並將它顯示到畫面上，

讓管理人員可以一目了然。

當然，你會說這有什麼困難？用一個 DataWindow 加上 Timer 就可以解決啦！

但如果，這些資料多到螢幕容納不下時會發生什麼事？

如果你設定必需2秒更新一次又會怎麼樣？

事實是，當管理人員下拉(Scroll)該 DataWindow 以便檢視下方被遮住的資料時，

由於 Retrieve 的關係，所以畫面又跳回第一筆 Row 啦！！！

管理人員會落入不勝其擾的拉下又跳回、拉下又跳回的無間地獄了。

也許加大 Timer 間隔是個方法，不過對於資料的即時性就大打折扣了，

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7098544548071584927/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7098544548071584927&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7098544548071584927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7098544548071584927'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/datawindow.html' title='背景讀取 DataWindow 的方法'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-8480292167693612250</id><published>2011-09-09T14:05:00.000+08:00</published><updated>2011-09-09T17:51:28.188+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Datawindow裡面資料Row的狀態變化</title><summary type='text'>DataWindow 的 Row 在讀取、新增、修改後都有不同的狀態紀錄，

要取得該 Row 狀態只要使用下面這個指令就可以：

DWItemStatus ldwi_row

ldwi_row = dw_1.GetItemStatus(ll_row , li_column , Primary!)或
ldwi_row = dw_1.GetItemStatus(ll_row , "col_name", Primary!)

上面程式片碼中 li_column 如果為 0 ，代表取得整個 Row 狀態。

DWItemStatus 有四種狀態：

New! (新增 row)
NewModified! (新增 row 並修改內容)
DataModified! (資料內容被修改)
NotModified! (沒有任何修改)
但是要注意的是一個 Row 有兩種狀態 Flag (標籤)</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/8480292167693612250/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=8480292167693612250&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8480292167693612250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8480292167693612250'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/row-status-for-datawindow.html' title='Datawindow裡面資料Row的狀態變化'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2418522982546544159</id><published>2011-09-08T18:43:00.000+08:00</published><updated>2011-09-09T17:51:07.113+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Powerbuilder inet.PostURL用法</title><summary type='text'>目前PB的開發我都是把它當成一個 Remote Client UI，

所以實際上它沒有連接資料庫，而完全是透過Coldfusion的服務頁面完成資料操作，

因此很多時候需要傳遞大量資料時，簡單的 inet.GetURL 函數就變得不好用了，

因此特地研究了inet.PostURL的用法，它的用法在Help上有兩個範例(我有修改過)：

第一種是簡單的呼叫一個頁面，並取得頁面回傳的HTML內容：
(請注意 linet 和 n_internetresult 都是必須先建立的物件與類別，可參考這裡)


Blob lblb_args
String ls_headers , ls_url
Long ll_length
n_internetresult lir_html
inet linet

linet = Create inet
lir_html = CREATE </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2418522982546544159/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2418522982546544159&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2418522982546544159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2418522982546544159'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/powerbuilder-inetposturl.html' title='Powerbuilder inet.PostURL用法'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-551899451555817109</id><published>2011-09-07T16:04:00.001+08:00</published><updated>2011-09-07T16:05:25.402+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Powerbuilder如何建立網際網路服務</title><summary type='text'>PowerBuilder 要建立網路服務，基本上需要兩個物件：

inetinternetResult
inet直接建立(instance)就可以了，例如：

inet linet
linet = Create inet

而接收inet傳回的資料就需要 internetResult 了，
只是這個物件不能直接建立，必須先建立Class (類別)，
並且寫入處理回傳資料的程式碼(script)，再建立(instance)成為物件才能使用：

(以PB10)

首先先建立一個Standard Class


Standard Class


再選擇  Types 為 internetResult



如果是PB6的版本就先建立User object



User Object


&gt;再選擇新建(new) &gt;選擇 Standard Class



Standard Class


</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/551899451555817109/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=551899451555817109&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/551899451555817109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/551899451555817109'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/how-create-internet-service-with.html' title='Powerbuilder如何建立網際網路服務'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-KMOUPq77qN4/TmcL3bjIHYI/AAAAAAAAAag/d8oAZPEV4Jw/s72-c/standclass.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-374954528143956286</id><published>2011-09-06T00:07:00.002+08:00</published><updated>2011-09-06T08:59:21.047+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cookie'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>jQuery.cookie 如何讀取 Coldfusion cfcookie 的設定值</title><summary type='text'>我們都知道在Coldfusion下設定cookie只需要使用 cfcookie tag,
例如我們設定一個cookie名稱叫cid，它的值為123456，有效期為1天： 

&lt;cfcookie name="cid" value="123456" expires="1"&gt;

如果用coldfusion來讀取這個只需要下：

&lt;cfset idvar = cookie.cid&gt;

或

#cookie.cid#

就可以簡單讀取。
但是某些情況下，若是用到了javascript來讀取這個值，就好像不是這麼一回事了，

目前我使用jQuery的Plugin：jQuery.cookie.js來讀取：

var cid = $.cookie("cid");

怎麼樣都讀取不到cfcookie設定的那個cid變數，
於是乎我反過來測試，
先用jQuery設定再由cfcookie讀取(</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/374954528143956286/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=374954528143956286&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/374954528143956286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/374954528143956286'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/09/jquerycookie-coldfusion-cfcookie.html' title='jQuery.cookie 如何讀取 Coldfusion cfcookie 的設定值'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-reSQXthK3kM/TmSoxfzX8EI/AAAAAAAAAaQ/igA8HpGNalw/s72-c/cookie1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-1480117009418802287</id><published>2011-06-20T11:44:00.001+08:00</published><updated>2011-06-20T11:45:38.155+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><title type='text'>Using cookie in CFML</title><summary type='text'>若是 Coldfusion 需要設定 Cookie 的變數，基本的用法如下：

&lt;cfcookie name="myid" value="a0001" expires="30"&gt;


name是key名稱
value是它的值
expires是它的存活期，可以是天數(如範例)、某一日期/時間、now(立即過期)、never(約30年)

&lt;cfcookie name="myid" expires="now"&gt;
&lt;cfcookie name="myid" expires="12/20/2010"&gt;


進階用法
domain=".mydomain2.com" 這是讓cookie指定給其他網域主機可以使用，一般cookie預設位置在你執行頁面的domain下。
path="/serverlet/login" 可以強制指定可用的網頁位置，一般的cookie是在該domain的root</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/1480117009418802287/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=1480117009418802287&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1480117009418802287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1480117009418802287'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2011/06/using-cookie-from-cfml.html' title='Using cookie in CFML'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-886906366319422234</id><published>2010-11-25T15:06:00.000+08:00</published><updated>2010-11-25T15:06:44.824+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>let's play sound with powerbuilder</title><summary type='text'>最近在用PB10做一些觸控裝置的UI(使用者介面,User Interface),雖然是觸控，不過使用起來的UE(user experience)跟 iPhone、iPad實在也差很多，無怪乎用過 iPhone之類的觸控裝至以後對於PC的各類觸控總覺得就是不喜歡。

題外話結束。 

在設計這類的句有觸控介面的程式時除了UI要非常易懂、直覺以外，其他的輔助可能就需要那麼一點了。在設計這個CASE的UI時，尤其是數字鍵盤，如若加個語音提示或是導航，也許會減少許多輸入錯誤的機會。

目前PB10尚未支援 .NET ,所以依然使用API設計。

使用方式不困難，因為Windows就有內建一些標準函式可以用了
首先,定義函式呼叫

Function Long auxGetNumDevs() Library "Winmm.dll"
Function Long auxSetVolume (Long </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/886906366319422234/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=886906366319422234&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/886906366319422234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/886906366319422234'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/11/lets-play-sound-with-powerbuilder.html' title='let&apos;s play sound with powerbuilder'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7288664479870878381</id><published>2010-08-24T12:15:00.000+08:00</published><updated>2010-08-24T12:15:47.944+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>天外之音 - Cecile Corbel</title><summary type='text'>
Cecile Corbel被譽為是法國頂級吟唱女音歌手，原本有聽過其名，但是未曾有去特別聽過她的歌在一次偶然的機會下，得知宮崎駿2010年新作《借りぐらしのアリエッティ ノ》請她來配樂，在看過預告之後，發現風格還蠻搭的。

感覺非常的舒服，跟之前宮崎峻的搭配別有另一種味道，只是不知是不是宮崎峻是不是想要刷洗之前幾部票房毒藥的名聲，個人我倒是蠻期待這部 《借りぐらしのアリエッティ ノ》的。




先來看看《借りぐらしのアリエッティ ノ》的預告片，等會再聽其他Cecile Corbel的音樂MV



Cecile Corbel - live performance - Je m'endors - celtic harp
  


感覺如何？聽她的音樂有種在田野花草間飛翔的 Feel 呢！</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7288664479870878381/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7288664479870878381&amp;isPopup=true' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7288664479870878381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7288664479870878381'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/08/cecile-corbel.html' title='天外之音 - Cecile Corbel'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hTwSjzRwsw0/THMvB0-EPgI/AAAAAAAAAYs/_mDQUxCmu5A/s72-c/CecileCorbell.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-3868093721585845518</id><published>2010-08-03T15:39:00.002+08:00</published><updated>2010-08-03T16:48:56.908+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>將Datawindow資料存出成EDI檔案</title><summary type='text'>PowerBuilder 的 DataWindow 本身可以將資料存成許多種格式，但偏偏就是缺了一種格式--EDI (Eletronic Data Interchange)--

這種格式在台灣是早期非常普遍的格式，詳見維基百科、經建會-解釋「通關作業XML電子資料交換格式」與EDI格式，主要多是公家機關使用，舉凡報稅、金融皆是使用此一格，久而久之就變成了早期台灣電腦最普遍的資料交換檔案格式。

這個格式的特色是每個欄位呈現在文字檔案中都有指定的長度(位元數)，各欄位資料之間無分隔符號。所以每個ROW DATA呈現成一串字串，每個ROW字串的長度完全一樣。當然，這種格式的優缺點並非這篇的重點，所以這裡就不討論。

例如：
假設 CSV 格式的資料如下
黃小明,1978/3/2,台中市中山路120號,0922-222-113,15
李大海,1970/12/14台北市忠孝東路三段41號8樓-</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/3868093721585845518/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=3868093721585845518&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3868093721585845518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3868093721585845518'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/08/save-as-fixed-length-text-data-file-for.html' title='將Datawindow資料存出成EDI檔案'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2517031085512895219</id><published>2010-07-30T18:10:00.001+08:00</published><updated>2010-07-30T18:17:29.500+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='電子電路DIY'/><title type='text'>替ETC車機OBU DIY一個車用電源</title><summary type='text'>使用ETC已經有一段時間了，差不多在遠通當初推出時沒多久就申請，
只是當初在申請後看到OBU的設計，著實讓我感覺不太好，
主要原因有兩個，一個是紅外線收發裝置的設計(這部分我就不講了，網路上很多人在抱怨)，
第二個就是使用電池當電源，這讓我很納悶，為什麼用電池？
為什麼不用車電源？
或是讓使用者可以選擇？

另一個最奇怪的問題就是，遠通電收還提醒我不可以用『金頂電池』，建議使用『勁量電池』
這就怪了，為什麼？
因為...金頂電池電流太高，會把OBU燒壞。噗!!!!!!
我差點沒把剛吃過的飯噴出來...

詢問之下得到的答案真是哭笑不得，雖然我看回答我的人也只是照著公司發的公告來唸，
但是這個答案也太離譜了吧，學電子的人大多都可以感覺到這答案太過敷衍。

如果金鼎電池電流太高(注意喔，他並不是說電壓)會把OBU燒掉，
那告誡一下遠通電收，你們RD部門真的是可以『呷賽』去啦。
</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2517031085512895219/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2517031085512895219&amp;isPopup=true' title='8 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2517031085512895219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2517031085512895219'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/07/etc-obu-power-supply-diy.html' title='替ETC車機OBU DIY一個車用電源'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_hTwSjzRwsw0/TFJvqcSpTHI/AAAAAAAAAXI/3NxYGhcwW2E/s72-c/7809.jpg' height='72' width='72'/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2495883272964633216</id><published>2010-07-29T13:46:00.002+08:00</published><updated>2010-07-29T14:18:52.105+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='網頁技術'/><title type='text'>引用：Tree's Blog: Blogger code block</title><summary type='text'>來源：Tree's Blog: Blogger code block

由於部落格主要是貼程式碼的地方，因此會需要使用到CODE標籤
可是常常改版面的結果，就是CODE的CSS描述會需要重貼，這就挺麻煩的
所以，引用了 TREE 的這篇文章，每次更改版面時就要記得貼回這段程式碼。
(貼入位置在 /* posts 區段)

code, .code {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #</summary><link rel='related' href='http://treetw.blogspot.com/2010/01/blogger-code-block.html' title='引用：Tree&apos;s Blog: Blogger code block'/><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2495883272964633216/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2495883272964633216&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2495883272964633216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2495883272964633216'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/07/trees-blog-blogger-code-block.html' title='引用：Tree&apos;s Blog: Blogger code block'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6782706193111109199</id><published>2010-07-29T11:12:00.003+08:00</published><updated>2010-07-29T12:00:29.354+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>使用Powerbuilder在EXCEL欄位插入圖片</title><summary type='text'>這是由 calvin 提供的
主要是想把圖片插入EXCEL裡面

可以參考下列片段：



string ls_filename1,ls_path1,ls_range

//要插入的圖
ls_pic = "c:\sign.bmp"

OleObject Loo_Excel 

Loo_Excel=create oleobject 

if Loo_Excel.ConnectToNewObject("Excel.Application") &lt;&gt; 0 then 

messagebox('提示','系統未安裝Excel,無法運行此操作!') 
  return 
end if 

Loo_Excel.Workbooks.Open(ls_filename)

//選好要插入的儲存格

Loo_Excel.Application.Range( "M22").Select

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6782706193111109199/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6782706193111109199&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6782706193111109199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6782706193111109199'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/07/insert-picture-to-msexcel-for.html' title='使用Powerbuilder在EXCEL欄位插入圖片'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4623098795737841191</id><published>2010-06-25T12:04:00.001+08:00</published><updated>2010-06-25T12:05:16.213+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><category scheme='http://www.blogger.com/atom/ns#' term='閱讀'/><title type='text'>Avatar這個字</title><summary type='text'>前陣子看了電影『阿凡達』，然後沒多就又出了一部電影『降世神通：最後的氣宗』


突然之間，覺得好像有什麼關聯，後來去回顧了一下『降世神通』的卡通，突然發現


AVATAR這個字


本來阿凡達出來時，對這個單字蠻陌生的，本以為只是一個音譯的結果，但卻看到有兩部片子用了同樣的單字，很好奇。

所以就去上網查了一下，居然GOOGLE大神的翻譯器翻不出來！！(YAHOO翻譯，譯典通都有找到)

後來，查詢綜合各方資訊得到結果是：

此字元本源自於梵文:अवतार ，在拉丁文的寫法就是:AVATAR
意思源自印度哲學中 神靈與人世間肉體之間的關係，也就是神靈經過深思熟慮，具有某種目的而從天界下降到人世的意義，一般也有『下降』、『轉世』的意義存在。一般俗稱『天神降臨』、『天神附體』、『降世神通』、『天神下凡』等等的意思存在。

現今最多的說法是『化身』意思。

當然以英文單字來說也有 </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4623098795737841191/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4623098795737841191&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4623098795737841191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4623098795737841191'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/06/word-avatar.html' title='Avatar這個字'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6295005115986893850</id><published>2010-05-30T02:15:00.001+08:00</published><updated>2010-05-30T02:18:44.691+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>自製吹泡泡水</title><summary type='text'>家中有小孩以後,難免要花上需多錢,尤其是小孩的娛樂...

當然我也不是鐵公雞,但是常常只要出去玩，一到旅遊景點,小孩子總是會望著吹泡泡的小販一直看,起初不以為意,想說滿個泡泡水給小孩玩也不是啥大問題的。

但是每次出門去玩就幾乎會買,久而久之就會驚覺這筆費用還真是不少啊！！

有感於此便到網路上找找有沒有人會用泡泡水的DIY，來自己做看看,也節省一點費用。順便喚起我的童年回憶。

後來找到一些親子網提供的泡泡水配方,很高興的抄起來自己去DIY....

真的是蠻有挫折感的,因為常是很多方法,結果都不理想,後來在百般嘗試後大概得出了一些心得。所以乾脆自己記錄下來，免得以後需要用到時就忘記配方了。

首先準備主要的配方材料如下圖：
從左起依序：洗碗精、洗髮精、甘油、膠水



從各原料採購以及注意事項說起吧
洗碗精(Dish Washing Liquid)：

真的不用買太貴的，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6295005115986893850/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6295005115986893850&amp;isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6295005115986893850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6295005115986893850'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/bubble-water-diy.html' title='自製吹泡泡水'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_hTwSjzRwsw0/TAFInrdEUdI/AAAAAAAAAV0/tbkx_P9Jjv4/s72-c/bb01.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7140962955469800293</id><published>2010-05-29T10:24:00.001+08:00</published><updated>2010-05-30T02:19:26.635+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Coldfusion 內建變數</title><summary type='text'>Coldfusion 本身系統已經內建好一些特殊用途的變數，而這些變數可以依照各種場合去存取使用，所以就先大概來了解一下這些特殊使用的變數吧。

CGI變數
當瀏覽器發出請求到服務器,Web服務器和瀏覽器創建這個環境變數,包含的資訊有IP位址、瀏覽器類型，驗證用戶名等等。要注意的是這個變數只能用來讀取不能修改。
CGI.SERVER_SOFTWARE : 請求回應的伺服器軟體的名稱與版本。
CGI.SERVER_NAME : 伺服器的主機名稱,DNS別名,IP位址。
CGI.GATEWAY_INTERFACE : CGI修訂版本。
CGI.SERVER_PROTOCOL : 伺服器的協定名稱與修訂版本。
CGI.SERVER_PORT : 伺服器的服務阜號碼。
CGI.SERVER_PORT_SECURE : 伺服器的服務阜號碼加密方式。
CGI.REQUEST_METHOD : </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7140962955469800293/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7140962955469800293&amp;isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7140962955469800293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7140962955469800293'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/coldfusion-built-in-variables.html' title='Coldfusion 內建變數'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7086519020241614435</id><published>2010-05-28T14:37:00.003+08:00</published><updated>2010-05-30T02:19:59.786+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Coldfusion 系統保留單字</title><summary type='text'>Coldfusion 與一般程式相同都有特定的保留字，由於這些是系統使用的單字，所以在設計Coldfusion文件時請勿使用，以免發生錯誤。

設計表單(FORM)時，底下列舉的單字請勿使用
_integer
_float
_range
_date
_time
_eurodate
_required



在SQL查詢內的單字請勿使用下列列表單字當作"變數"名稱


ABSOLUTEACTIONADDALLALLOCATE
ALTERANDANYAREAS
ASCASSERTIONATAUTHORIZATIONAVG
BEGINBETWEENBITBIT_LENGTHBOTH
BYCASCADECASCADEDCASECAST
CATALOGCHARCHARACTERCHARACTER_
LENGTHCHAR_LENGTH
</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7086519020241614435/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7086519020241614435&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7086519020241614435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7086519020241614435'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/coldfusion-reserved-words.html' title='Coldfusion 系統保留單字'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-554646961033383206</id><published>2010-05-28T12:02:00.008+08:00</published><updated>2010-05-30T02:20:43.371+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>HTTP GET and POST basic</title><summary type='text'>HTTP(Hypertext Transfer Protocol)是網路上最普遍的一種訊息交換協定，基本上它就是用來向服務主機發出要求的基本通訊方式，當然網路上也有其他衍生模式，如HTTPS、FTP等等。本篇僅簡述HTTP項服務主機發出的兩種方式，與實際產生的格式。

如果你需要撰寫SERVER端的服務，就必須稍微了解HTTP發出的請求訊息會長什麼樣子。

GET
get是屬於比較基礎的請求方式，例如網頁連結
&lt;a href="http://www.site.com/hello.html"&gt;&lt;/a&gt;
產生的訊息就會如下
GET /hello.html HTTP/1.1
Host: www.site.com
User-Agent: Mozilla/4.0
如果是帶有參數的請求，例如利用連結或是表單
&lt;a href="http://www.site.com/login.html?id=</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/554646961033383206/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=554646961033383206&amp;isPopup=true' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/554646961033383206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/554646961033383206'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/http-get-and-post-basic.html' title='HTTP GET and POST basic'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6819774730467132140</id><published>2010-05-25T18:17:00.003+08:00</published><updated>2010-07-29T13:33:22.930+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Powerbuilder夾帶檔案發送郵件的方法</title><summary type='text'>案例版本：PowerBuilder 6.5
powerbuilder本身有呼叫exchange郵件的能力，所以發送郵件只需要使用內定物件與函數即可達成，但是有許多需要注意的地方，例如附件檔案、郵件內容等等。

先看一下畫面的設計：

收件者欄位是 sle_recipient
主旨是 sle_subject
附加檔案是 lb_1
郵件內容是 mle_notetext



在『傳送』按紐的clicked事件裡面放上一段程式碼：

mailSession lm_Ses
mailReturnCode lm_Ret
mailMessage lm_msg
mailFileDescription mfd
integer    li_no
Long        ll_pos
String    ls_file,ls_path

lm_Ses = create mailSession

//</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6819774730467132140/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6819774730467132140&amp;isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6819774730467132140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6819774730467132140'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/powerbuilder.html' title='Powerbuilder夾帶檔案發送郵件的方法'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_hTwSjzRwsw0/S_uFQ8wimSI/AAAAAAAAAVs/ANuUTzIkGIU/s72-c/smail01.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-100190188296254496</id><published>2010-05-13T12:04:00.000+08:00</published><updated>2010-05-13T12:04:22.344+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>郭采潔 - My'Car 與原曲Mika - Lollipop</title><summary type='text'>最近真的快忙死了
手上2-3個程式專案要做，還得應付處理行銷政策，加上一個跟不上進度的工程師，很多程式都快做不出來啦...

以上僅是牢騷話.....

最近，裕隆不斷的推 my car 這個廣告，本來不太注意的，沒想到我家的女兒有一天突然哼哼的唱起來，我才發現這廣告對女孩子的吸引力很強啊！



有時候，男孩子會以比較理性的立場去看這樣的東西，通常會覺得：
這樣的車，看起來很孩子氣，不夠流線，不夠霸氣。
這樣的車，性能一定不怎麼樣，極速不高，馬力不大。
這樣的車，安全堪虞，板金很薄.....
等等的理由

但是，若以行銷立場來看的話，確是非常成功的『吸睛』了。
所以，你可以想想，為什麼百貨公司一樓都是賣化妝品的了。
因為根據統計，消費能力最大的都是女性。

後來，我稍微去注意了一下廣告，也發現了這樣的廣告必須是量身訂做的，也就是不能套用。
簡單的去Google一下，發現它的原創是MIK</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/100190188296254496/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=100190188296254496&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/100190188296254496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/100190188296254496'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/05/mycar-mika-lollipop.html' title='郭采潔 - My&apos;Car 與原曲Mika - Lollipop'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-598734842723619870</id><published>2010-04-30T16:05:00.000+08:00</published><updated>2010-04-30T16:05:31.257+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>報表使用滑鼠滾輪就會發生問題-PowerBuilder6.5</title><summary type='text'>好吧，我承認我是老古董
powerbuilder 6.5的開發工具我還是在使用的.....
&lt;&lt;題外話結束&gt;&gt;

如果你設計的報表在遇到滑鼠滾輪滾動時就會出現『Sybase Inc. Product File發生問題，必須關閉，僅此致歉。』的訊息

請注意兩件事：
一、DataWindow中的Detail Band 高度被設為 0。
二、PBVM60.DLL有問題

解決方式：
一、不要故意設計Detail Band高度為0的報表(我知道有時候這樣設計統計表比較方便)。
二、在datawindow視窗物件事件上禁止滑鼠滾輪動作。但如果遇到報表比較長的就很麻煩。
三、更新pbvm60.dll ，如果你要問我哪裡找，我想可能很難吧，畢竟都是骨董級軟體。

目前我還是有保留，需要的人可以留言給我向我索取，不過不確定100%可用於你的PB6版本。
如果想用盡只滑鼠滾輪的方式處理可以參考另外一篇『</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/598734842723619870/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=598734842723619870&amp;isPopup=true' title='4 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/598734842723619870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/598734842723619870'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/04/powerbuilder65.html' title='報表使用滑鼠滾輪就會發生問題-PowerBuilder6.5'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2447789183080191477</id><published>2010-04-30T16:03:00.004+08:00</published><updated>2010-08-05T14:18:00.889+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>如何在datawindow中禁止使用者使用滑鼠滾輪</title><summary type='text'>這不算太難，只要懂點MSDN的人大概都能明白吧

Datawindow視窗物件上的兩個事件都可以用，擇一即可

一、寫在 OTHER EVENT

CONSTANT integer WM_MOUSEWHEEL = 522

if message.number = WM_MOUSEWHEEL then
   message.processed = True
   message.returnvalue = 1
end if

二、新增事件ue_syscommand 並繼承pbm_syscommand

CONSTANT integer WM_MOUSEWHEEL = 522

if CommandType = WM_MOUSEWHEEL then
   message.processed = True
   message.returnvalue = 1
end if

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2447789183080191477/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2447789183080191477&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2447789183080191477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2447789183080191477'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/04/datawindow.html' title='如何在datawindow中禁止使用者使用滑鼠滾輪'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4766733559665128252</id><published>2010-04-07T14:15:00.001+08:00</published><updated>2010-05-15T09:29:17.620+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>真假慈悲？</title><summary type='text'>現在的人都很慈悲為懷。

但是卻不是每個人都能了解慈悲的意義。 
讓我說個故事吧：

從小，我就跟爺爺奶奶住一起，我們家是傳統的務農人家，
爺爺每天的工作就是耕鋤，早上5點就起床稻田裡去工作，
我們小孩則是6點起床、7點上學、下午4點半回家。



每天上下學，都得經由主田埂穿過爺爺的那片稻田，
時常在路上踩著田埂上的福壽螺屍體，霹靂啪啦的作響，加上飄逸的臭味，心裡好不是滋味，
那條主田埂約1部車寬，主要是給農務車、鐵牛行經使用，當時轎車是非常少的。

有一次問爺爺：為什麼爺爺您要把那些蝸牛(小孩子分不清螺與蝸牛)檢起來丟在路上呢？

爺爺：傻孫，那個叫福壽螺，不是蝸牛喔。

爺爺：如果不檢起來的話，那些螺會把稻子都咬壞的，我們每年的米就會少收很多。
(我依稀記的當時的農作是一年一耕，因為只有秋天的時候，才有稻草堆可以玩。)

我問：那為什麼檢起來的螺要丟到路上呢？

爺爺：丟到路上，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4766733559665128252/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4766733559665128252&amp;isPopup=true' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4766733559665128252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4766733559665128252'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/04/blog-post.html' title='真假慈悲？'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-5268382475763675824</id><published>2010-03-19T16:56:00.003+08:00</published><updated>2010-05-15T09:40:52.280+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>將WEB上傳的檔案轉存到FTP-ColdFusion</title><summary type='text'>一般來說，使用ColdFusion指令讓使用者上傳檔案，並不是什麼大難題，你可以下個指令就可以完成了。

&lt;cffile action="upload" filefield="upfile" destination="C:\InetPub\wwwroot\uploads" &gt;
假如，除了WEB伺服器外你還有FTP伺服器提供給客戶使用不同方式上傳檔案的話，當客戶習慣於不同場合由不同伺服器上傳檔案，這樣你會很難將客戶的檔案統一管理，你必須頻於WEB伺服器與FTP伺服器間處理客戶上傳的檔案，這時如果又有另一部(或多部)WEB伺服器加入戰局，你可以想像要管理分散在各處的客戶上傳檔案，會是相當惱人的了。因此簡單的作法是將客戶上傳的檔案全部導向同一部伺服器上，以減少分散的管理問題。



此時，就可以利用ColdFusion的FTP指令了，建議的方式是由FTP伺服器來統籌接受客戶的檔案，利用</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/5268382475763675824/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=5268382475763675824&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5268382475763675824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5268382475763675824'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/03/webftp-coldfusion.html' title='將WEB上傳的檔案轉存到FTP-ColdFusion'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4426380335473430714</id><published>2010-03-18T18:25:00.000+08:00</published><updated>2010-03-18T18:25:55.935+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>目前沒遇過丟件的超峰貨運</title><summary type='text'>
記得我老婆公司以前美國護照都是由某家貨運公司在送的，後來不知何時變成超峰快遞在送護照了，記得以前公司每次大出團時都是她最擔心的了，真的，原本那家貨運常常搞丟護照，畢竟她也是承辦的人員，搞到常被客戶罵或是緊急送件，還得常常麻煩BOSS跟去機場送件左拜託右拜託的請求客戶和航空公司原諒，如果沒時間自己跑到台北AIT的話，就是得燒香拜拜別丟件了。也許AIT也受不了吧，後來換這家超峰快遞，這幾年以來就沒遇到這樣的問題，我也不用常常大老遠往台北跑，她說輕鬆多了，聽說這家公司要求運送護照很嚴格，司機運送護照好像是件不離身的，不過這樣嚴格也好，至少像她這種常常寄送護照的就不需要提心吊膽啦。</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4426380335473430714/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4426380335473430714&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4426380335473430714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4426380335473430714'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/03/blog-post_18.html' title='目前沒遇過丟件的超峰貨運'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-3666753354763577909</id><published>2010-03-18T01:36:00.001+08:00</published><updated>2010-05-15T09:47:48.281+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><category scheme='http://www.blogger.com/atom/ns#' term='推荐廠商'/><title type='text'>製造點菜機、發票機、櫃員機的廠商</title><summary type='text'>這家公司是 普士科技 (拍檔集團) http://www.taiwan-pos.com/

本來年初公司規劃今年更換老式發票機，
因為再不換就會面臨民國100年的問題。
本來想直接買新的發票機，

但是找了找，發現能夠處理民國100年問題的發票機也不便宜
加上需要有統一編號檢查機制的發票機，
選擇性就更少了。



後來，有一天與精聯電子的業務經理 劉先生在談HT(手持式裝置)的問題時，
順口聊了一下這個問題，
劉先生就提到他們最近在跟某家製造POS的廠商有合作，
他可以介紹認識。

本來，POS機在我的觀念中算是挺奢侈的產物，
用在開發票會不會小題大作了點？

後來在與普士科技的 朱先生會談以後，發現
POS機不再像以前一樣的高不可攀，
若是拿來加發票機程式化以後，
可以和原本的營業系統資料庫更緊密結合，
使之成為一個增加生產力的工具。

後來朱先生也大方的借了一部 PT-6910</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/3666753354763577909/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=3666753354763577909&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3666753354763577909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3666753354763577909'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/03/blog-post.html' title='製造點菜機、發票機、櫃員機的廠商'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-8154525343737420211</id><published>2010-02-24T10:40:00.009+08:00</published><updated>2011-12-05T12:06:15.426+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='好用軟體'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>JUMPCN網站漫畫下載程式</title><summary type='text'>上一篇是抓 kukudm 網站的程式，由於該站常改程式碼且不穩定，所以最後停止更新該站的擷取。後來經網友推薦的網站中，大概看了一下 jumpcn 網站比較沒那麼多的"機關"，因此決定以此站為抓取對象，直接修改上一次的程式"kukucatch"以便節省開發時間。

下載位置：按這裡、或這裡
軟體版本：2.2.1.5
檔案大小：5MB(RAR壓縮)
解壓密碼：無
需要安裝：免安裝
***************************************************************************************************
*2011-08-30*另外網友 Wolfar 提供了他開發的版本，可以到下面網址
http://jumptocatch.blogspot.com/
他的版本目前有持續更新，建議各位網友可以去看看
**********</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/8154525343737420211/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=8154525343737420211&amp;isPopup=true' title='33 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8154525343737420211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8154525343737420211'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2010/02/jumpcn.html' title='JUMPCN網站漫畫下載程式'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_hTwSjzRwsw0/S4IBuV99PDI/AAAAAAAAAUo/LrnKMNNba30/s72-c/k001.jpg' height='72' width='72'/><thr:total>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-8792682965287517380</id><published>2009-12-25T11:41:00.004+08:00</published><updated>2010-05-15T09:44:14.524+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>公司統一編號驗證</title><summary type='text'>國稅局目前網頁上不提供，這是從其他部落格找到的，我稍微修改過。
工具：PowerBuilder 

先來看一段驗證公式(來源：酷！學園)：


(一) 長度：共八位，，全部為數字型態。
(二) 計算公式
１、各數字分別乘以１,２,１,２,４,１。
２、公式如下:
＿Ｄ１Ｄ２Ｄ３Ｄ４Ｄ５Ｄ６Ｄ７Ｄ８
ｘ　１　２　１　２　１　２　４　１　(第一列 * 第二列)

＿Ａ１Ｂ１Ａ２Ｂ２Ａ３Ｂ３Ａ４Ｂ４　(Ｂx：相乘後的十位數)
＋　　Ｃ１　　Ｃ２　　Ｃ３　　Ｃ４　(Ｃx：相乘後的個位數)

＿Ｘ１Ｘ２Ｘ３Ｘ４Ｘ５Ｘ６Ｘ７Ｘ８　(Ｘx：相加後的十位數)
＋　　　　　　　　　　　　Ｙ７　　　(Ｙx：相加後的個位數)

Ｚ１＝Ｘ１＋Ｘ２＋Ｘ３＋Ｘ４＋Ｘ５＋Ｘ６＋Ｘ７＋Ｘ８　或
Ｚ１＝Ｘ１＋Ｘ２＋Ｘ３＋Ｘ４＋Ｘ５＋Ｘ６＋Ｙ７＋Ｘ８

３、當第 7 位數為 7 者，可取相加之倒數第二位取 0 及 1 </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/8792682965287517380/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=8792682965287517380&amp;isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8792682965287517380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/8792682965287517380'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/12/blog-post_25.html' title='公司統一編號驗證'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2839947696574404257</id><published>2009-12-10T09:58:00.001+08:00</published><updated>2010-05-15T09:45:54.245+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='網站推薦'/><category scheme='http://www.blogger.com/atom/ns#' term='閱讀'/><title type='text'>閱讀的好地方-好讀網站</title><summary type='text'>介紹一個不錯的網站

如果你是愛看文字書的人士這個網站可以讓你飽飽\眼福。


好讀網站(按這裡)，這個網站提供不少文字書可以盡情閱讀

它也提供專屬閱讀程式可以用，還包含各種平台呢，如Windows(PC)、IPhone、WinCE、Plam等等。

當然，好網站需要您的支持的，支持費用並不貴的。

我看過我BOSS用IPhone在看書，使用的流暢讀很不錯，段落分章清楚。</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2839947696574404257/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2839947696574404257&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2839947696574404257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2839947696574404257'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/12/blog-post.html' title='閱讀的好地方-好讀網站'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hTwSjzRwsw0/SyBUUy_vpZI/AAAAAAAAAUg/GGgik5ZYxx8/s72-c/haodoo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-1790005804017690497</id><published>2009-11-26T10:35:00.002+08:00</published><updated>2010-05-15T09:50:15.785+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>設計DataWindow的好習慣：SQL Plan</title><summary type='text'>PowerBuiler中的DataWindow就是SQL Result的視覺化物件。在.net中的物件中類似是DataGrid。

當你設計一個 DataWindow 時，很大的機會都會用到 SQL 查詢。
但是很方便的設計工具，不代表你可以有效的使用它。

雖然我這裡的範例使用的是 ASE SQL Server，
而且 SQL 語句都是在 SQL server 上執行的，
但是本質上 SQL 查詢的指令和模式都有很大的雷同，
所以這裡沒有指定是哪一種 SQL Server ，我要提供的只是觀念。



假設，這裡有個 Table ，結構如圖：
  這是一個簡單的訂單資料表，它有4個索引，分別對應
order_no(訂單號,主索引), order_date(訂單日) ,cust_name(客戶) , sale_name(業務員)

如果你在 Datawindow 使用下面這一個查詢：

</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/1790005804017690497/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=1790005804017690497&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1790005804017690497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1790005804017690497'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/11/datawindowsql-plant.html' title='設計DataWindow的好習慣：SQL Plan'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_hTwSjzRwsw0/Sweq9C6VEPI/AAAAAAAAAUE/eoL7Uru0F44/s72-c/dwsql01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2159257951666214842</id><published>2009-11-19T12:03:00.005+08:00</published><updated>2010-05-15T10:03:02.834+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>在PowerBuilder下轉換簡繁體中文字</title><summary type='text'>聲明：這是在Windows XP SP3繁體中文版環境底下的方式，不一定適用於英文版外掛繁體中文套件及Windows XP簡體版。

這是PB10的版本，如果你是PB10以下的版本，請注意external function宣告的方式不需要使用";ansi"。

首先宣告 instant 變數 ：

// 區域語系 
Constant    long   LCMAP_TRADITIONAL_CHINESE=67108864
Constant    long   LCMAP_SIMPLIFIED_CHINESE=33554432
// 編碼方式
constant Uint CP_ANSI          = 0         // default to ANSI code page 
constant Uint CP_OEM           = 1         // </summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2159257951666214842/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2159257951666214842&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2159257951666214842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2159257951666214842'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/11/powerbuilder.html' title='在PowerBuilder下轉換簡繁體中文字'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4638091416360141258</id><published>2009-11-18T17:30:00.006+08:00</published><updated>2010-05-15T10:04:34.193+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='好用軟體'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>網路漫畫下載程式</title><summary type='text'>這是我自己寫的小程式
謝謝各位關心，本頁由於對象網站抓取異常已經停止更新，原程式已經重新修改並導向新網站抓取漫畫，歡迎各位到 這裡來看看。
原本，在阿榮的網頁裡面看到的 抓線上漫畫的小軟體 後，愛看漫畫的我終於可以免除用網頁看漫畫的痛苦，但是常常遇到 kukudm 網站的問題(改程式碼、主機位置、網頁塞車)的困擾，導致常常下載不了，加上原本作者在當兵無法即時維護，沒辦法之餘，只好把以前拿來分析網頁的程式改寫，做出了這支程式，當然也感謝榮哥幫我刊載。

不過，由於它是PowerBuilder 10開發的，所以Runtime的部份頗大，主程式約400K，但是Runtimer就大到 13MB了！關於Runtime的檔案我還不知道要如何簡化，盡量把不要的DB connect檔案拿掉了。
提醒您，漫畫雖然好看，但是也要讓眼睛適當休息，畢竟螢幕會比書本對您的眼睛殺傷力更大喔。廢話不多了，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4638091416360141258/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4638091416360141258&amp;isPopup=true' title='70 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4638091416360141258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4638091416360141258'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/10/blog-post.html' title='網路漫畫下載程式'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/SvAAXjADlII/AAAAAAAAASw/sA4YLvZIBE0/s72-c/kuku34.jpg' height='72' width='72'/><thr:total>70</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-9133909749060058717</id><published>2009-11-13T14:14:00.003+08:00</published><updated>2010-05-15T10:06:15.443+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>在 SingleLineEdit 輸入時動態過濾 datawindow 中的資料</title><summary type='text'>假設有個 Window :: w_main
裡面有兩個物件 SingleLineEdit :: sle_id 和 DataWindow :: dw_1
dw_1裡面有 兩個欄位 id 和 name

先對 sle_id 新增自訂事件: ue_keyup，event id請選 pbm_keyup 。
然後在 ue_keyup 中加入

String ls_id ,ls_filter

ls_id = This.Text
ls_filter = 'id like ~'' + ls_id + '%~''
dw_1.SetFilter(ls_filter)
dw_1.Filter()

這樣你就可以即時過濾 dw_1 裡面的資料了。

簡單吧?

說明：
SingleLineEdit本身只有對 text 欄位變更的事件反應，也就是 modified 事件，如果你需要對 keyboard 進行偵測</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/9133909749060058717/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=9133909749060058717&amp;isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/9133909749060058717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/9133909749060058717'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/11/singlelineedit-datawindow.html' title='在 SingleLineEdit 輸入時動態過濾 datawindow 中的資料'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/Svz3qpq3ZiI/AAAAAAAAATY/eFPvvvp_jU0/s72-c/ZBA.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-5150380284258357768</id><published>2009-11-10T13:35:00.001+08:00</published><updated>2010-05-15T10:08:12.836+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>Powerbulder 呼叫 Windows API 要注意的地方-字串的傳遞</title><summary type='text'>Windows API 函式(以下簡稱API)

PowerBuilder(以下簡稱PB,以下範例使用PB6,PB10因為有UNICODE編碼關係會比較麻煩在此不方便做DEMO)的特性大部分用的人都知道，其缺點就是UI介面太單調、低階操作完全不行(我是指位元組變數運算操作還有I/O控制)，但是還好它支援API的呼叫使用。

但是另一個問題又來了，API的呼叫很多參數都牽涉到位元組處理還有定址等太多問題，所以本篇僅針對字串傳遞的問題發響。

關於API傳遞字串，其實會使用的人應該都會注意到一件事情，就是API要求字串傳遞時，通常都是以傳址方式處理，而且通常接下來一個參數就是字串長度的值。

舉個例子，例如記憶體拷貝的指令 RtlMoveMemory，在MSDN上的定義：
VOID 
  RtlMoveMemory(
    IN VOID UNALIGNED  *Destination,
</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/5150380284258357768/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=5150380284258357768&amp;isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5150380284258357768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5150380284258357768'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/11/powerbulder-windows-api.html' title='Powerbulder 呼叫 Windows API 要注意的地方-字串的傳遞'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-3829825012614887447</id><published>2009-11-09T12:02:00.004+08:00</published><updated>2010-07-30T18:33:34.872+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>EVENT呼叫的注意事項-Yield的使用</title><summary type='text'>在PowerBuilder中事件的呼叫方式分為2種，『Post』與『Trigger』。

利用Trigger呼叫事件其實就像你在呼叫Function一樣，原本的程序會暫停(推入堆疊)，然後執行Trigger的EVENT對象，執行完畢後，再回到(推出堆疊)原程序繼續執行，若是有回傳值，則會隨之回傳。

利用Post呼叫事件，則是將要呼叫的EVENT對象放到該物件的Message Queue(佇列)中等待被執行，原本程序不中斷繼續執行，因此如果你的事件有回傳值，會根本都收不到(因為還沒執行)

以上是PB對事件呼叫的方式(對Function 也可使用Post)。

原本，這樣的描述執行方式是沒有問題的，但卻有的很大的盲點，那就就是 yield() 指令。

很多人會在迴圈中，尤其是執行起來很久的迴圈，放入yield 指令來讓視窗畫面不會產生LAG現象。但是如果正在執行迴圈的事件程序(</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/3829825012614887447/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=3829825012614887447&amp;isPopup=true' title='4 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3829825012614887447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3829825012614887447'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/11/event-yield.html' title='EVENT呼叫的注意事項-Yield的使用'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2002115174319754326</id><published>2009-09-12T15:07:00.001+08:00</published><updated>2010-05-15T10:16:31.134+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='好用軟體'/><category scheme='http://www.blogger.com/atom/ns#' term='railo'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>Railo 免安裝 Server 版</title><summary type='text'>寫這篇文章的版本是 3.1.1

這裡介紹的是 Server 的ZIP版本 ，不是EXE版。

因為EXE版在安裝到Windows 2000的過程有異常當機情形，而且執行時若RESET次數過多會導致無法再正常啟動，但在 Windows XP 與 Windows 2003 不會，由於未找到原因，所以未了避免過多的問題，所以用ZIP版，操作起來也是蠻好用的。

下載檔案請到 官方下載網站 下載Server版本 railo-3.1.1.000-resin-with-jre-windows.zip (71 MB)

下載的ZIP解壓所後會產生一個資料夾 railo-3.1.1.000-resin-with-windows(下文都會稱此資料夾為 Railo 資料夾)，裡面會有相關檔案。

注意到資料夾裡面有個 install-service.bat，執行這個批次檔案，就會在Windows</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2002115174319754326/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2002115174319754326&amp;isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2002115174319754326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2002115174319754326'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/09/railo-service.html' title='Railo 免安裝 Server 版'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/Sqs6eCc2mSI/AAAAAAAAAMs/axu0_8oDHYQ/s72-c/railo-service.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2531099676039658087</id><published>2009-08-15T10:02:00.001+08:00</published><updated>2010-05-15T10:19:16.177+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='好用軟體'/><category scheme='http://www.blogger.com/atom/ns#' term='railo'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>Railo免安裝版-Railo Express</title><summary type='text'>不知道Railo？先看這一篇"認識Railo"。

寫這篇時的版本是 3.1.1

下載 railo-express 的zip壓縮檔後，將它解壓縮。
注意該資料夾下有兩個檔案 start.bat 與 stop.bat，這是啟動與停止。一般網頁的服務位址阜(port，也有人說窗口阜)在 80 ，預設的情況下瀏覽器瀏覽網頁時，若不指定port則都是使用 port 80 連線。因為 railo-express 屬於環境測試使用，為了避免與本機上IIS(若有安裝IIS，其預設 port 就是 80)衝突，所以使用了別的 port來啟動服務。它預設的 port 是 8888。

若你想修改啟動 port 位置，請用記事本開啟 server.xml (與 start.bat 同資料夾下)，找到底下指令：


&lt;Set name="port"&gt;
&lt;SystemProperty name="</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2531099676039658087/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2531099676039658087&amp;isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2531099676039658087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2531099676039658087'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/08/railo-railo-express.html' title='Railo免安裝版-Railo Express'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_hTwSjzRwsw0/SoYcs9iepZI/AAAAAAAAAME/NXyAZWJ_xc4/s72-c/railo-express-start.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-1148553153755829678</id><published>2009-08-14T09:37:00.000+08:00</published><updated>2009-08-18T12:31:42.627+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>什麼是CFML</title><summary type='text'>CFML 是一種可程式化的網頁標籤語法。只要你學過HTML就應該知道 HTML 的語法就是一種網頁標籤語法，透過標籤語法可以讓瀏覽器知道要如何將網頁內容呈現給使用者，通常標籤語法都是被包在 &lt;與 &gt;之間，例如：&lt;hr /&gt;就是告訴瀏覽器畫出一條水平線。所以可知網頁標籤語法是給瀏覽器處理的，而可程式化又是什麼意思？一般的HTML檔案內容當你設計好時，它就是固定內容，每次讀取都是一樣的內容，因此你需要因應使用者輸入需要而有畫面變化時，就需要重新設計一個HTML檔案。可是當有某種需求表單會有10種以上的反應的話，你就有可能要設計出11種樣版HTML檔案，最慘的是，若是這11種樣版大致上都需要一樣的版面時，以後只要有一個版面更新，那剩下的10個HTML檔案都要一並更新。最害怕這種情況的，應該就屬網頁美工人員了，因為網頁美工排版動用到的標籤元素非常的多，而且很複雜，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/1148553153755829678/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=1148553153755829678&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1148553153755829678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/1148553153755829678'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/08/cfml.html' title='什麼是CFML'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6017760130490512957</id><published>2009-08-13T14:56:00.000+08:00</published><updated>2009-09-12T15:11:31.784+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='railo'/><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>架設自己的伺服器</title><summary type='text'>好了，來說說怎麼讓CFML怎麼運作吧。

雖然CFML是ColdFusion的程式語言，但是ColdFusion現在是Adobe的產品之一。跟Adobe打過交道的人都知道，Adobe不好惹啊，而且一般人對它的價碼敬而遠之。所以在台灣用的人真的不多，因為台灣大多是中小企業啊。

介紹一下Railo

但是學習過CFML的人都了解它是個好物，缺點就是付出的成本較高昂(就是要買一套Adobe ColdFusion)。但國外早期有不少人學CFML，後因Allaire被Adobe收購，原本的使用者因故改轉到PHP上，但是當時的PHP極度不穩定，導致不少損失。因此改尋找新的方案下找到了Railo(聽說當初還是個學生的專題研究，其名稱原是Ryhlo，是星艦迷航StarTreck Enterprise中的一隻外星狗的名字)。

至於認識的人都知道目前也有其他伺服器套件支援CFML如：BlueDragon</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6017760130490512957/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6017760130490512957&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6017760130490512957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6017760130490512957'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/08/blog-post_12.html' title='架設自己的伺服器'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6515377911848853189</id><published>2009-08-13T09:39:00.000+08:00</published><updated>2009-08-14T11:59:24.877+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>網頁運作概念</title><summary type='text'>基本上，網頁(HTTP)的運作方式其實並不難，只要大致上了解的它的運作方式，其他的都是增加上去的擴充功能。你可以想像你的瀏覽器是一個餐廳的服務生，而你正在餐廳，餐廳的廚師是網頁伺服器，你想要看的網頁就是餐點。最簡單的方式就是點一客牛排。1.你會先跟服務生說：我要點一客牛排。2.服務生收到您的要求，然後去跟廚師說：客人要一客牛排(Request)。3.廚師做好牛排，交給服務生(Response)。4.服務生將牛排交給你。這個過程就是最簡單的網路資訊交易過程，按照上述的順序解釋如下：1.你在瀏覽器上輸入了網址(例如：http://www.hostname.com)。2.你按下送出(submit)後，瀏覽器將要求(Request)送到伺服器(Server)。3.伺服器回應(Response)給瀏覽器需要的網頁資料。4.瀏覽器將網頁資料呈現在你眼前。很簡單吧。當然上面是基本概念，其中當然多了幾道</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6515377911848853189/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6515377911848853189&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6515377911848853189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6515377911848853189'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/08/blog-post.html' title='網頁運作概念'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-571687502778946175</id><published>2009-08-12T16:48:00.000+08:00</published><updated>2009-08-13T09:36:49.831+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><category scheme='http://www.blogger.com/atom/ns#' term='ColdFusion'/><title type='text'>coldfusion恐慌症</title><summary type='text'>接任主管的職務通常都會遇到需要自己克服的事情，而且別人也無法幫你的，還有的同事也在準備看好戲的，總之，就是如此啦。雖然今天要講的不是什麼新聞了，但是卻是去年10月到今年3月間讓我極度傷腦筋的問題，那就是--ColdFusion，也許使用過的人大概不會覺得有啥問題的，重點就是我完全沒用過這套軟體啊 Orz。偏偏公司的主網頁又是使用這軟體開發的，後來遇到網頁版面需要改版的問題，需要進行大規模的修改，但是前任主管才沒多久前將CF server升級過，聽說花了不少錢。心想，半年前去補習過.NET，所以本來打算使用.NET開發，但是公司經費核准不下來(我想應該是老闆覺得才花過錢的為什麼又要再花一次錢吧)，若用JSP或是JAVA又不是那麼熟悉，而且公司另一部主機使用JSP+Apache的經驗實在不愉快，讓我對純JAVA的東西不太想碰。而且最大的問題是---為什麼國內沒有任何ColdFusion</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/571687502778946175/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=571687502778946175&amp;isPopup=true' title='8 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/571687502778946175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/571687502778946175'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2009/08/coldfusion.html' title='coldfusion恐慌症'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2925650468909129617</id><published>2008-08-12T13:49:00.000+08:00</published><updated>2009-10-29T10:03:00.288+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>差異</title><summary type='text'>雖然我的臨場反應很快，可是要短時間做決定時，考慮還是不夠周全的。

跟前一任的主管Jr比起來，能力上多少有點不太夠，尤其是遇到比較大的決策時。Jr是處女座的主管，做事一定要條理分明，是他的原則，所以他是寧願延宕工時，也不願意因為時間壓力而做太半調子的事情。但有時候也許太小心翼翼，有些事情會不敢做。這不是不好，Jr常常也說要保護自己的Team不要受到其他單位的無理要求。

Jr：因為我們不是資訊公司，趕完Case交差了事，還得有許多善後的動作，東西若是做得不夠嚴謹、完整，事後要擦的屁股肯定很多，加上人手不多，不該出差就盡可能不要出差。

當兵時雖然當過管理職(排長)，但是距離現在已經快超過10多年了，Fu都快忘了，當然部隊的管理方式在資訊單位也是不太適用的，所以還是得從頭學習。

雖然有我們有自己專業的見解，但是有時候在老董的壓力下，還是會得向不利的時間條件屈服，這時候就很佩服Jr</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2925650468909129617/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2925650468909129617&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2925650468909129617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2925650468909129617'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/08/blog-post_11.html' title='差異'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-5055192874538124724</id><published>2008-08-08T11:41:00.000+08:00</published><updated>2008-08-08T11:47:58.203+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='生活碎碎念'/><title type='text'>這就是生殺大權吧</title><summary type='text'>任職代理課長到今天大概1/3個月了，人事課送來了一本"員工月考核表"，我想這就是主管的生殺大權吧，看看之前的主管對員工評分幾乎都是滿分，真是相當疼愛啊~~~(謎之音：我們都很認真的喔~~)。看看大家都那麼認真的份上我也不好意思去做所謂的"扣分"了。"舊"這樣子吧(我沒打錯字)！繼續努力吧</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/5055192874538124724/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=5055192874538124724&amp;isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5055192874538124724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5055192874538124724'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/08/blog-post.html' title='這就是生殺大權吧'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7287200609981926404</id><published>2008-05-28T13:57:00.000+08:00</published><updated>2008-05-28T14:14:48.855+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='問答集'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>DataWindow執行時出現encountered select error錯誤</title><summary type='text'>一般DW如果會跳出這個錯誤，通常是DW中的table定義的欄位長度與SQL執行的欄位長度不符。如果說有其他原因，也可能是DW與SQL指令搭配不完全。再者，一般DW執行發生錯誤如果沒有攔截dberror事件，是不會得到SQL error的訊息，然而SQL CODE 2 encountered select error:這種錯誤訊息是DW已經將SQL指令送出執行，在資料庫傳送資料到DW上發生無法處理的錯誤，導致無法繼續(encountered)。據我的經驗是DW當初"設計"時參照使用的Table，後來因為某些因素做了變更(通常是欄位長度加大)，導致DW中記載的欄位長度與實際Table不符合，當資料長度小於DW當初定義的欄位長度時還不會發生問題，但是當資料長度超過DW當初定義欄位的長度時就會出現錯誤。解決方式：重新進入設計DW的data source，簡單的變更或是調整一下SQL部分語法，此時</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7287200609981926404/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7287200609981926404&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7287200609981926404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7287200609981926404'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/05/datawindowencountered-select-error.html' title='DataWindow執行時出現encountered select error錯誤'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4145019486486554357</id><published>2008-05-22T13:40:00.000+08:00</published><updated>2008-05-22T14:31:25.836+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='問答集'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>Compute欄位小計異常</title><summary type='text'>請問一下,為什麼我在這個DW的[總成本小計]後面的COMPUTE欄位(如下圖所示)加入sum(  compute_0024  for group 1 )但出來的結果卻是我是很單純的想把COMPUTE_0024加總起來而已!!好怪********************************************************************************關於Compute的問題，我也遇過幾次，原因不是很清楚，但是有些做過調整後就可以使用了，我提供幾種解決方法你可以各個去試試：compute_0024有Null值，因為某些條件下沒有計算值，我推測是Null值，這個Null值可能導致Group1上的compute計算sum值錯誤。解決方式：在compute_0024的公式外面加個if(isnull(xx) , 0 , xx)的判斷，強迫讓Null值的公式出現0</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4145019486486554357/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4145019486486554357&amp;isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4145019486486554357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4145019486486554357'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/05/compute.html' title='Compute欄位小計異常'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/SDUJSlP2qzI/AAAAAAAAAIo/uA1-6rbWQN8/s72-c/QA001.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4116628439123492268</id><published>2008-05-19T15:12:00.000+08:00</published><updated>2008-05-19T17:33:33.095+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>ProgressBar設計</title><summary type='text'>說真的，當初在使用PB6.5的時候，常常覺得視覺控制項太少(可能是被VB養成的壞習慣)，但是因為PB真的有其獨到MIS快速開發的物件導向功能，所以在設計MIS系統的時候，VB只好被我給秉棄不用了；可是說正格的，有時候視覺控制項卻是在UI的分數中占蠻高的比重的。而今天要設計的ProgressBar也是PB6.5缺少的控制項之一，雖然PB7以上的版本已經有這樣的控制項，不過目前朋友還是在使用PB6.5，所以我還是將它設計出來造福一下人群吧。要設計ProgressBar並不是什麼難事，包括許多DIY的視覺物件也是，但是難就難在要做好一個完整的物件控制項，考驗設計師對使用者(其它設計師)的操作上手速度(這個應該稱作設計介面)：物件功能分明度(A功能與B功能好像類似)、可控制精細度(控制項裡面的物件)、封裝一體性(對控制項裡面的物件控制要如同直接對控制項設定控制般簡單)等等，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4116628439123492268/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4116628439123492268&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4116628439123492268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4116628439123492268'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/05/progressbar.html' title='ProgressBar設計'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hTwSjzRwsw0/SDEzXG7ddvI/AAAAAAAAAHk/rb6IGq4Filg/s72-c/pbar01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4556566282111864254</id><published>2008-04-30T17:09:00.000+08:00</published><updated>2011-09-07T19:01:20.948+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='window小技巧'/><title type='text'>在windows右鍵上增加複製(搬移)到資料夾選項</title><summary type='text'>
2011-09-07補充：多年下來使用的時候每當一次選取多個檔案開啟時，就會發生Copy to 和Move to 一直被開啟，真是不勝其擾，最後決定移除掉了。
本篇文章來源 一段影片 看了之後覺得頗為實用的，不過內容太快，又是英文發音，如果英文不好的可以看我下面的作法：

(一)點擊[開始]選擇[執行] --&gt; 請輸入 Regedit 按[確定]開啟登錄編輯程式(二)進入HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers一般來說ContextMenuHandlers底下只會有個Send To(傳送到...)的機碼
(三)在ContextMenuHandlers上按右鍵選 [新增] -&gt; [機碼]
(四)請新增"Copy To"以及"Move To"兩個機碼
(五)每個機碼內都會有個"(預設值)"的字串值(</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4556566282111864254/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4556566282111864254&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4556566282111864254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4556566282111864254'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/04/windows.html' title='在windows右鍵上增加複製(搬移)到資料夾選項'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/SBg4yWcYZQI/AAAAAAAAAEw/MtWzs_vFrss/s72-c/rmu01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-7938944143342967638</id><published>2008-04-29T15:55:00.000+08:00</published><updated>2008-05-07T18:14:29.313+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>TreeView DataWindow設計(二)</title><summary type='text'>看過上一篇的簡單說明後，現在就進行實作了範例程式。※TreeView DataWindow名稱過長，文中會使用TVDW(大寫)來代表其意義。※DataWindow簡稱DW(大寫)※DataStore簡稱DS(大寫)(一)先來看看程式主畫面：這個畫面的左半邊是展示用的資料，我這邊的展示設定是某家傳直銷的組織圖，因為這樣的組織圖很容易用來表現樹狀結構的特性，如果你不知道傳直銷組織的話，問一下親朋好友應該會有人解釋得很好(?)吧，傳直銷的組織特性就像是樹狀結構圖，基本上分為上線(通常是推薦人)以及下線(通常是所屬會員或是組織成員)；上線如同父節點(Parent)，下線如同子項目(Child)，所以如果能理解的話應該不難理解畫面左邊的列表意思。現在的目的就是要如何把這樣的條列資料展現成樹狀組織圖，以供列表或是操作了。主畫面的右半上方是TVDW的產生示範功能，右半下方則是TVDW本身了。[產生]：</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/7938944143342967638/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=7938944143342967638&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7938944143342967638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/7938944143342967638'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/04/treeview-datawindow_29.html' title='TreeView DataWindow設計(二)'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hTwSjzRwsw0/SCFHUWcYZcI/AAAAAAAAAGQ/JrlqlqvaB-g/s72-c/tvdwdemo01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-2746032579744794484</id><published>2008-04-29T09:56:00.000+08:00</published><updated>2008-04-30T13:28:17.107+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程式實作'/><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><title type='text'>TreeView DataWindow設計(ㄧ)</title><summary type='text'>開發工具：powerbuilder 6.5雖然powerbuilder 10.5已經提供了TreeView DataWindow的功能了畫面也是標準的DataWindow介面，感覺上也很好用?(我還沒用過啦)。可是呢，目前公司提供的工具最高也僅到PB10而已，大多數的程式和工具也都是維持在PB6.5的版本；而且許多朋友也是還在使用PB6.5苦撐...唉！公司預算有限嘛！能用且用囉。這讓我興起想要建立自己的TreeViewDataWindow物件的想法。雖然說powerbuilder本身就有treeView的物件，但是那不是DataWindow的型態，所以列印的話效果都不好，也很難控制。難怪powerbuilder敢誇海口DataWindow是MIS開發報表最方便的工具。由於DataWindow由於名稱過長，因此文中如果有遇到DataWindow如果有遇到字樣的可能會以DW表示。《一》首先</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/2746032579744794484/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=2746032579744794484&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2746032579744794484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/2746032579744794484'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/04/treeview-datawindow.html' title='TreeView DataWindow設計(ㄧ)'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_hTwSjzRwsw0/SBaDF2cYZGI/AAAAAAAAADg/5rfFrP8q8Q0/s72-c/newobj_pb105.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-4273362571734911479</id><published>2008-04-02T13:22:00.000+08:00</published><updated>2008-04-02T13:54:17.323+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='講座心得紀錄'/><title type='text'>『躍升2008打造價值型人才』台中場講座心得紀錄</title><summary type='text'>主辦單位：經理人月刊時間：2008/3/13以下是李紹唐先先生與何飛鵬先生講座混合雜記：◎注重3Q ：EQ、AQ、IQ IQ(Intelligence Quotient)是指一個人在學習、理解、判斷方面的能力。 EQ(Emotion Quotient)是指一個人了解，並主導自己情緒，以及與他人溝通、協調、互動的能力。 AQ(Adversity Quotient) 是指一個人面對挫折、逆境時的處理能力。◎追逐夢想，永不放棄 俗話說：人有夢想而偉大，但實際上是：人因實現夢想而偉大。 有夢想人人都會有，但是有正確的夢想(方向正確)，只剩下20%的人，再因有正確夢想而努力實踐者只剩4%。(80/20法則) 當你沒有夢想(指的是人生終極目標)時，你很容易就在某種階層就自我滿足。而忘了往更高的地方去。 這讓我想到一個例子：登山者的故事  一群登山客要挑戰很高的山，一同從山腳下出發，</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/4273362571734911479/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=4273362571734911479&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4273362571734911479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/4273362571734911479'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/04/2008.html' title='『躍升2008打造價值型人才』台中場講座心得紀錄'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-3448951673899822596</id><published>2008-03-27T09:08:00.000+08:00</published><updated>2008-03-27T15:00:14.981+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>ＰＢ多線程自動排程設計(一)</title><summary type='text'>多線程的設計主要是為了改進單線程自動排程的問題，因此設計成多線程的執行方式來解決，但由於PowerBuilder本身沒有辦法設計MultiThread，因此改用多程式方(MultiProcess)式來模擬此方法。既然是MultiProcess，那麼需要2支程式，一支是排程程式(Scahdule runner)，與工作執行程式(Work Processor)。排程程式：屬於獨立運作的程式，其內容相當單純，只負責排程表(Scahdule Table)的掃描(Scan)與執行呼叫(Call)，由於本身不需要處理工作，因此沒有被工作延滯的可能性，單純的處理排程表的掃描，也可以減少多餘的程式碼維護。工作執行程式：被動式程式，裡面會撰寫所有的工作程式碼，此程式可以被多次執行，由於在windows下一支程式可以被多次執行，而且不會互相干擾(這是指程式本身，不包含都在讀取相同資料庫的資料表產生的LOCK</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/3448951673899822596/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=3448951673899822596&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3448951673899822596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/3448951673899822596'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/03/blog-post_5062.html' title='ＰＢ多線程自動排程設計(一)'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hTwSjzRwsw0/R-r9D1950JI/AAAAAAAAACY/AWzkE27q0Vc/s72-c/call_work.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-6015952698872326018</id><published>2008-03-26T15:36:00.000+08:00</published><updated>2008-03-27T11:21:49.996+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>ＰＢ單線式自動排程程式設計(二)</title><summary type='text'>繼上一篇ＰＢ單線式自動排程程式設計(一)這篇來談談如何改進上一篇的STACK溢位問題吧。其實這個方法並不難，但是要有足夠的觀念。1.在原來的window上增加一個自訂事件ue_process2.在window的共用變數(Instance variables)增加一個布林值Boolean ib_busy = false3.把原本在timer事件中的 程式碼全部移動到 ue_process事件中4.在ue_process事件中的程式碼(不包含變數定義)開頭加入：ib_busy = true在程式碼最後加入：ib_busy = false5.在原本的timer事件中寫下下列程式碼：If ib_busy = false Then       post event ue_process()End If原理是利用旗標變數ib_busy來阻擋事件被觸發，當ue_process被執行時 ib_busy</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/6015952698872326018/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=6015952698872326018&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6015952698872326018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/6015952698872326018'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/03/blog-post_26.html' title='ＰＢ單線式自動排程程式設計(二)'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4877352561605124077.post-5987055500029396127</id><published>2008-03-26T11:54:00.000+08:00</published><updated>2008-03-27T14:59:12.307+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerbuilder'/><category scheme='http://www.blogger.com/atom/ns#' term='程式理論'/><title type='text'>ＰＢ單線式自動排程設計(一)</title><summary type='text'>簡介：這裡所謂單線式排程程式，意指排程掃描與工作處理程式都寫在同一支程式裡面，由於PowerBuild ６程式本身無法像Ｃ＃般寫成多執行緒的能力，因此在同時處理許多作業時，都得依照程式碼執行的ＳＴＡＣＫ順序執行，故名為＂單線式＂準備與設計：１.首先必須要有一分工作排程清單，例如每日工作這樣的資料表結構你可以設計成DataWindow，當然你如果要增加欄位或是功能，都是可以的，不過基本上的結構是如此。結構中"時"、"分"的欄位是用來比對是否進行工作的時間點，當時間行程到達該時間點時就得進行該工作的執行。"執行時間"則是代表此工作"被執行完成"的時間點，這個用來判斷該工作是否已經被執行，而不會被重複執行的要件。"啟用"則是決定該工作是否需要被執行，有的人會以另一種觀點"暫停"來設計。"工作名稱"顧名思義只是用來顯示的名稱，讓人一目瞭然知道此工作的用途。"代號"</summary><link rel='replies' type='application/atom+xml' href='http://radio-idea.blogspot.com/feeds/5987055500029396127/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4877352561605124077&amp;postID=5987055500029396127&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5987055500029396127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4877352561605124077/posts/default/5987055500029396127'/><link rel='alternate' type='text/html' href='http://radio-idea.blogspot.com/2008/03/blog-post.html' title='ＰＢ單線式自動排程設計(一)'/><author><name>WILDOX</name><uri>http://www.blogger.com/profile/12684420592107580662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_hTwSjzRwsw0/SCKb68_eZsI/AAAAAAAAAHE/PJFxOVkEps8/S220/IRM01.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_hTwSjzRwsw0/R-nj7l950HI/AAAAAAAAACE/v4u0UYfLSaQ/s72-c/scahdule.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
