2011年6月27日 星期一

轉貼 Request.Form與Request.QueryString

用法類似 java servlet 的 dohttpPost 和 do httpGet, asp .net 還不算熟


可以 google 一下 "request form asp.net" 看看相關資料

2011年6月24日 星期五

轉貼 Eclipse UML 外掛 modelgoon



環境需求:

Eclipse 3.5.x and 3.6.x
GEF + Draw2D 3.5.x and 3.6.x
Java 1.5 or higher


外掛位址:
http://www.modelgoon.org/update

心得

1. 安裝後可以建立 class diagram ( project-> new -> MoelGoon Diagrams-> Class Diagram)

2. 可以新建class 或者用拖曳的方式把寫好的java 檔 拖到編輯畫面

3. 在圖上function 的地方還可以秀 seqence diagram

官網
http://www.modelgoon.org/?page_id=75

功能教學:

2011年6月17日 星期五

轉貼 Continuous Integration

以下轉自網路,基本上此篇可以當作書籤


Continuous Integration, 持續整合,感覺好像喊了好久了,今天偶然看到詞知道有這東西

簡單說 ,以我理解概念包含版本控管和單元測試,比較像TE 會用到的東東

其中 hudson 就是一套 以java 撰寫的 CI 軟體

以下轉貼幾個連結

[1] WIKI
[2] 當紅炸子雞:Continuous Integration,http://www.josephj.com
[3] 淺談 CI, Continuous Integration (持續整合),http://blog.toright.com
[4] 十件有關 Continuous Integration 的事情 , http://www.wretch.cc/blog/kojenchieh/15488468

2011年6月16日 星期四

心得 google app engine 1.5 支援 struct2 有問題

看來google 又失誤了 還是 struct2 太少人用了 哈
目前解決的方式 是 改sdk 到1.4 或 1.43 版

下載舊的版本可以到下面link
選擇 search alldownload, 預設是顯示最新版的API.



參考:http://code.google.com/p/googleappengine/issues/detail?id=5053

2011年6月14日 星期二

轉貼 asp.net 產生MS-Word

主要因應公司有人的需求才開始找的,由ASP.NET 動態產生資料在直接由ms word 開啟

主要有幾點注意
  • a. 預設使用 ms word 開啟 ,
將 設為 ContentType="application/msword" , 其他還有很多種型態如 excel,pdf 等這裡就不贅述
  • b. 使用特殊符號
如□ , 我的作法是 將 ResponseEncoding="big5", utf-8 的話會亂碼, 此外內文也要加入 <meta http-equiv="Content-Type" content="application/msword; charset=big5" /> 不然一樣出現亂碼, 這邊應該和宣告範圍有關

  • c. 設定邊界,
內文中 ,設定 style , 記得要內容要放在 class = style1 的 div tag 中 ,參考[1]




<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=big5">
<title>Test Margin</title>
<style>
<!--
@page Section1 {size: 21.59cm 27.94cm;
mso-page-orientation:landscape;
margin: 1.5cm 1.48cm 1cm 1.5cm;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
mso-header:h1;
mso-footer:f1;
layout-grid:18.0pt;}
div.Section1 {page:Section1;}

</style>
</head>

<body>
<div class=Section1 style='layout-grid:18.0pt'>
Test Margin
</div>
</body>

</html>

連結


  • d.設定 header footer[2] ,
不過這方法 header 的字串會重複出現 最後一行


參考
[1] 請教 document.execCommand(藍色小舖)
[2] Hiding Header/Footer In ASP Generated Word Document (experts-exchange)