2013年10月25日 星期五

2013年10月22日 星期二

輸入產品金鑰不符合任何可用來安裝的Windows映象

ASUS X450J 配置Windows 8,改DVD為SSD,安裝第2OS Server 2012
無法安裝:輸入產品金鑰不符合任何可用來安裝的Windows映象...
Ref:http://idaiwan.pixnet.net/blog/post/38066447-%E5%A6%82%E4%BD%95%E5%9C%A8%E5%AE%89%E8%A3%9D-windows-8-%E6%99%82%EF%BC%9A%E4%B8%8D%E8%BC%B8%E5%85%A5%E7%94%A2%E5%93%81%E9%87%91%E9%91%B0%E3%80%81%E4%B8%A6
在Bootable USB 碟的 Source 目錄下(先確認無ei.cfg檔),加入以記事本編輯的ei.cfg,
[Channel]
Retail
二行文字,安裝OK。


2013年7月15日 星期一

Porche 911 3D Model

1. Download  porche-911 3ds file : porsche-911-turbo-convertible-car-f.rar (forget the original url)
2. Looking for 3ds to xaml converter ( Zam 3D evaluation version for 15 days)
3. 使用Zam 3D 轉換 3ds --> xaml
4. 運用 WPF example 載入 模型
5. 測試結果

6. 程式下載

2013年5月23日 星期四

STLViewer

1. STL 2 XAML
2. 程式下載 (ASCII STL File)

3.  程式下載 (Binary STL File)

4.  程式下載 (Binary STL File, 修改讀檔方式)

2013年5月22日 星期三

衛星選轉OKK!

1. 公自轉解決了,衛星應該很容易,等了好久,測試OK。
2-1 太陽(球)靜止在原點(0,0,0)
2-2 地球自轉/平移公轉半徑/公轉

                             <Transform3DGroup>
                                <RotateTransform3D>
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D x:Name="日自轉" Angle="0" />
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
                                <!-- 日半徑 -->
                                <TranslateTransform3D OffsetX="10"/>
                                <RotateTransform3D >
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D x:Name="日公轉" Angle="0" />
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
                            </Transform3DGroup>

2-3 月球自轉/平移公轉半徑(繞地球)/公轉(繞地球)/平移地球公轉半徑/地球公轉

                           <Transform3DGroup>
                                <RotateTransform3D>
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D x:Name="月自轉" Angle="0" />
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
                                <!-- 月公半徑 -->
                                <TranslateTransform3D OffsetX="5"/>
                                <RotateTransform3D>
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D x:Name="月公轉" Angle="0" />
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
                                <!-- 日半徑 -->
                                <TranslateTransform3D OffsetX="10"/>
                                <RotateTransform3D>
                                    <RotateTransform3D.Rotation>
                                        <AxisAngleRotation3D x:Name="日公轉2" Angle="0" />
                                    </RotateTransform3D.Rotation>
                                </RotateTransform3D>
3.



4. 程式下載

2013年5月3日 星期五

Create Window Service

Ref: http://forums.pdfforge.org/discussion/4749/using-sc-exe-for-creating-the-service/p1
OS: Windows 7 x64
1. Cmd.exe as Administrator
2. sc create "serviceName" start= auto binpath= "E:\Acad\Working\Powershell\TcpServer1\TcpServer1\bin\Debug\tcpserver1.exe"

2013年4月9日 星期二

NameScope 錯誤

Build WPF application from console mode:
1. Add Reference
    PresentationCore
    PresentationFramework
    WindowsBase
    System.XAML ( It may not be needed in VS 2008 ? not sure)
2.  Without SetNameScope, there may be animation without notice.
    //------ 要先註冊NameScope +++
    //System.Windows.NameScope.SetNameScope(this, new System.Windows.NameScope());
     this.RegisterName("旋轉物件名稱", 旋轉);
            System.Windows.Media.Animation.DoubleAnimation 動畫 =
                new System.Windows.Media.Animation.DoubleAnimation();
            動畫.From = 0;
            動畫.To = 360;
            動畫.Duration =
           new System.Windows.Duration(TimeSpan.FromMilliseconds(1500));
3. It may be found out by setting a break point after RegisterName since the code will not be executed.
4. 程式下載