2008年8月30日星期六

Internet Explorer 8 Beta 2 Is Out

前天IE終於出了IE8的Beta 2,照以往MS的進程,應該RC版/Release版可望年底出現。新功能其實對於Firefox3用家來說似乎沒有太大吸引力。
ie8_accelerators_on.jpgie8_compatibility_on.jpgie8_inprivatebrowsing_on.jpgie8_searchsuggestion_on.jpgie8_smartscreen_on.jpgie8_webslices_on.jpg

Internet Explorer 8 Home
http://www.microsoft.com/ie8
Download Internet Explorer 8 Beta 2
http://www.microsoft.com/windows/internet-explorer/beta/worldwide-sites.aspx

2008年8月25日星期一

DVBViewer不需安裝PowerDVD硬解高清

因為原來TotalMedia 冇得行Vista指定的EVR Renderer,所以前幾天終於迫住上網買DVBViewer,都幾好用。
不過我見好多人都話硬解要安裝PowerDVD,用佢既Filter。我就極不願意安裝一個根本唔會用既軟件。

於是上網搵到一個叫PureCodec既o野。其實同K-Lite果個一樣都係Codec包,
不過佢就多出PowerDVD 8既H.264同MPEG-2 Filter ,亦即係DVBViewer硬解需要既Filter,
雖然係恐怖的Made in China,不過到目前為止都冇乜問題,似乎沒有自行安裝什麼廣告程式...

而且亦包含RMVB同QuickTime Codec,可以用來取代K-Lite Mega喇~
開左硬解後,我用P35+E8400+9600GSO+2GB Ram,睇高清翡翠台一般CPU使用率都唔會超過15%。

Pure Codec :
http://jm.wmzhe.com/

點樣Set DVBViewer硬解可以去呢條Link :
HKEPC
DVBViewer心得+教學(多台同預錄、畫中畫、網上串聯、MHEG5互動)

2008年8月12日星期二

Visual Studio 2008 Service Pack 1 and .NET Framework 3.5 Service Pack 1

等了半年有多的時間了~為什麼我很期待這版Service Pack,因為對我來說重要的更新是
- 修正WebForm Designer的效能
- 增加ADO.NET Entity Designer
- ASP.NET Data Scaffolding Support (ASP.NET Dynamic Data) For GridView, ListView etc..
- ASP.NET AJAX Back/Forward Button History Support
- WPF Performance Improvements

安裝時,要注意,剛從Readme看到:
啟用 Windows Vista 資訊看板時,Visual Studio 2008 SP1 安裝失敗。
若要解決這個問題:
1. 以滑鼠右鍵按一下通知區域中的 [資訊看板] 圖示,位於工作列的最右邊。
2. 按一下 [結束]。

雖然不知錯誤原因,但都是乖乖地先關閉Vista的資訊看板吧。

Introduction
Visual Studio 2008 and the .NET Framework 3.5 enable developers to rapidly create connected applications that deliver high quality and rich user experiences. Visual Studio 2008 enables organizations of every size to rapidly create secure, manageable, and reliable applications that are optimized for Windows Vista™, SQL Server, the Microsoft 2007 Office system and the Web.

Visual Studio 2008 Service Pack 1 (SP1) and .NET Framework 3.5 SP1 continue Microsoft’s investment in market leading development tools and developer platform. SP1 addresses issues that were found through a combination of customer and partner feedback, as well as internal testing. These service packs offer customers improvements in responsiveness, stability and performance.

Overview
http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx
Download Microsoft Visual Studio 2008 Service Pack 1 (EXE Version) (含中文版本)
http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
Download Microsoft Visual Studio 2008 Service Pack 1 (ISO Version) (含中文版本)
http://www.microsoft.com/downloads/details.aspx?FamilyID=27673c47-b3b5-4c67-bd99-84e525b5ce61&DisplayLang=en
Visual Studio 2008 SP1 readme
Fixes included in this Service Packs (KB945140)
Visual Studio 2008 SP1 Express Editions

2008年8月4日星期一

LINQ : Using Lambda Expression to AddRange()

在LINQ中使用Lambda Expression,我們可以有效地extract出Anonymous Types中的values.

Example :
public List<string> GetList()
{
List<string> pList = new List<string>();
DataClasses_Store DataContext = new DataClasses_Store();
//Select the customer where live in "HongKong" and Take 100 records
var select = (from c in DataContext.customer_info
where c.customer_location.Equals("HongKong")
orderby c.reg_date descending
select new { c.customer_id , c.customer_name } ).Take(100);
//Fill the List
foreach (var s in select)
{
pList.Add(c.customer_id + " " + c.customer_name);
}
return pList;
}

使用Foreach方法都是一般網上Example做法,但是我們可以使用Lambda Expression並轉換成IEnumerable達至AddRange的要求。

public List<string> GetList()
{
List<string> pList = new List<string>();
DataClasses_Store DataContext = new DataClasses_Store();
//Select the customer where live in "HongKong" and Take 100 records
var select = (from c in DataContext.customer_info
where c.customer_location.Equals("HongKong")
orderby c.reg_date descending
select new { c.customer_id , c.customer_name } ).Take(100);
//Fill the List
pList.AddRange(select.Select(p => p.customer_id + " " + p.customer_name).AsEnumerable());
return pList;
}