參考網站:http://itgeekhelp.blogspot.com/2009/04/increase-glassfish-memoryheap.html
Application Server->JVM Settings->JVM Options
將 -Xmx512m 改為 -Xmx1024m 或更大
將 -XX:MaxPermSize 的值設為256m
2010年10月27日 星期三
2010年9月10日 星期五
2010年9月9日 星期四
2010年9月8日 星期三
Flex Chart 動態 series
一般的圖表設計,會在 Tag mx:series 內新增多個 series ,然後每個對應不同的欄位 (yField or xField),
因為來自不同欄位,所以可以這樣作,但如果值是來自相同欄位的話,而另一個欄位則儲存分類的類別值,如
不同的 Sales Man就是代表一條線,那要怎麼作呢,這邊有範例可以參考,使用XML方式,而程式碼的部份資料來源是使用 ArrayCollection,應該就可以達成其功能了。
Dynamic Create Series By XML Data Source
coding
try {
var wholist:Array = new Array();
var property:String ;
//partXRData is an arraycollection
for(var i:int =0; i property = partXRData.getItemAt(i).USER_NAME as String;
if (wholist[property] == null){
wholist[property] = new ArrayCollection();
}
(wholist[property] as ArrayCollection).addItem(partXRData.getItemAt(i));
}
var currentSeries:Array = new Array();
var count1:int = 0;
var localSeries:LineSeries = null;
for each (var ac1:ArrayCollection in wholist) {
// Create the new series and set its properties.
localSeries = new LineSeries();
localSeries.dataProvider = ac1;
localSeries.yField = "AVERAGE1";
localSeries.xField = "VALUE_SN";
// Set values that show up in dataTips and Legend.
localSeries.displayName = ac1.getItemAt(0).USER_NAME;
// Back up the current series on the chart.
// Add the new series to the current Array of series.
currentSeries.push(localSeries);
}
// Add the new Array of series to the chart.
avgChart1.series = currentSeries;
}catch(error:Error) {
}
因為來自不同欄位,所以可以這樣作,但如果值是來自相同欄位的話,而另一個欄位則儲存分類的類別值,如
Sales Man | Date | Amount |
Sales A | 2010/01/01 | 100 |
Sales B | 2010/01/01 | 200 |
Dynamic Create Series By XML Data Source
coding
try {
var wholist:Array = new Array();
var property:String ;
//partXRData is an arraycollection
for(var i:int =0; i
if (wholist[property] == null){
wholist[property] = new ArrayCollection();
}
(wholist[property] as ArrayCollection).addItem(partXRData.getItemAt(i));
}
var currentSeries:Array = new Array();
var count1:int = 0;
var localSeries:LineSeries = null;
for each (var ac1:ArrayCollection in wholist) {
// Create the new series and set its properties.
localSeries = new LineSeries();
localSeries.dataProvider = ac1;
localSeries.yField = "AVERAGE1";
localSeries.xField = "VALUE_SN";
// Set values that show up in dataTips and Legend.
localSeries.displayName = ac1.getItemAt(0).USER_NAME;
// Back up the current series on the chart.
// Add the new series to the current Array of series.
currentSeries.push(localSeries);
}
// Add the new Array of series to the chart.
avgChart1.series = currentSeries;
}catch(error:Error) {
}
2010年8月30日 星期一
2010年8月24日 星期二
Asp.net 網頁如何讀取網路磁碟機 (share folder)
這不是新技術,只是有剛剛需要,如果兩台都有加入網域的話,應該不用設定就可以讀的到
但如果都沒有加入網域的話,上網找了一下文章,設定如下:
will will
Code Project
基本上設定如下:
假設一台Web Server , 一台 File Server
1.共同建立一相同的local 帳號,密碼相同 ex: M6_FilePass ,有一網站建議在WEB Server 上直接修改 IUSR_******的帳號的密碼,然後再File Server 上建立 IUSR_******的帳號,這樣比較不會出錯。
2.設定 IIS Web Server:在 "我的電腦" 按滑鼠右鍵選擇"管理",服務與應用程式 == IIS == 目錄安全設定 == 匿名存取與驗證控制 == 編輯 “允許IIS來控制密碼”打勾取消,如果有的話。帳號、密碼輸入你所建立的帳號
3.File server設定:分享目錄設定,把剛剛建立的user加入至分享目錄安全性的群組內
4.網頁設定:Web.config設定 :加入identity
但如果都沒有加入網域的話,上網找了一下文章,設定如下:
will will
Code Project
基本上設定如下:
假設一台Web Server , 一台 File Server
1.共同建立一相同的local 帳號,密碼相同 ex: M6_FilePass ,有一網站建議在WEB Server 上直接修改 IUSR_******的帳號的密碼,然後再File Server 上建立 IUSR_******的帳號,這樣比較不會出錯。
2.設定 IIS Web Server:在 "我的電腦" 按滑鼠右鍵選擇"管理",服務與應用程式 == IIS == 目錄安全設定 == 匿名存取與驗證控制 == 編輯 “允許IIS來控制密碼”打勾取消,如果有的話。帳號、密碼輸入你所建立的帳號
3.File server設定:分享目錄設定,把剛剛建立的user加入至分享目錄安全性的群組內
4.網頁設定:Web.config設定 :加入identity
訂閱:
文章 (Atom)