1. ASUS BM6660
2. Windows 8.1
3. Kinect for Windows SDK 2.0
One Kinect sensor can support 3 application in the same time.
2014年9月14日 星期日
2014年9月11日 星期四
Leap Motion -Hello World
1. ASUS X450J
2. Windows 8.1
3. VS 2012
4. Leap Motion SDK 1.0.9+8391
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//----
// 1. Copy LeapC#.NET.4.0, Leap.DLL, LeapC#.DLL into project folder
// 2. Add the first one as reference and add two others as existed items.
//----
using Leap;
namespace ConsoleEx1
{
class Program
{
static void Main(string[] args)
{
SampleListener listener = new SampleListener();
Controller controller = new Controller();
controller.AddListener(listener);
// Keep this process running until Enter is pressed
Console.WriteLine("Press Enter to quit...");
Console.ReadLine();
controller.RemoveListener(listener);
controller.Dispose();
}
}
class SampleListener : Listener
{
private Object thisLock = new Object();
private void SafeWriteLine(String line)
{
lock (thisLock)
{
Console.WriteLine(line);
}
}
public override void OnConnect(Controller controller)
{
SafeWriteLine("Connected");
}
//public override void OnFrame(Controller controller)
//{
// SafeWriteLine("Frame available");
//}
public override void OnFrame(Controller controller)
{
Frame frame = controller.Frame();
SafeWriteLine("Frame id: " + frame.Id
+ ", timestamp: " + frame.Timestamp
+ ", hands: " + frame.Hands.Count
+ ", fingers: " + frame.Fingers.Count
+ ", tools: " + frame.Tools.Count
+ ", gestures: " + frame.Gestures().Count);
}
}
}
2. Windows 8.1
3. VS 2012
4. Leap Motion SDK 1.0.9+8391
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//----
// 1. Copy LeapC#.NET.4.0, Leap.DLL, LeapC#.DLL into project folder
// 2. Add the first one as reference and add two others as existed items.
//----
using Leap;
namespace ConsoleEx1
{
class Program
{
static void Main(string[] args)
{
SampleListener listener = new SampleListener();
Controller controller = new Controller();
controller.AddListener(listener);
// Keep this process running until Enter is pressed
Console.WriteLine("Press Enter to quit...");
Console.ReadLine();
controller.RemoveListener(listener);
controller.Dispose();
}
}
class SampleListener : Listener
{
private Object thisLock = new Object();
private void SafeWriteLine(String line)
{
lock (thisLock)
{
Console.WriteLine(line);
}
}
public override void OnConnect(Controller controller)
{
SafeWriteLine("Connected");
}
//public override void OnFrame(Controller controller)
//{
// SafeWriteLine("Frame available");
//}
public override void OnFrame(Controller controller)
{
Frame frame = controller.Frame();
SafeWriteLine("Frame id: " + frame.Id
+ ", timestamp: " + frame.Timestamp
+ ", hands: " + frame.Hands.Count
+ ", fingers: " + frame.Fingers.Count
+ ", tools: " + frame.Tools.Count
+ ", gestures: " + frame.Gestures().Count);
}
}
}
2014年9月3日 星期三
Schedule task (PowerShell)
Ref: http://key.chtouch.com/ContentView.aspx?P=1533
1. 控制台 系統與安全
4. 設定排程觸發時間
1. 控制台 系統與安全
2. 工作排程窗右側新增工作
3. 設定排程名稱
4. 設定排程觸發時間
5. 啟用PowerShell
Notes: PowerShell.exe 檔名
.
2014年9月2日 星期二
機碼用在特定狀態時無效 -- Install Python 2.6.6
Ref: http://forum.gamer.com.tw/C.php?bsn=60030&snA=356116
1. Windows 8.1 user: Administrator
2. Install Python 2.6.6
即便更改新版,仍持續出現"機碼用在特定狀態時無效"
3. 參考 Ref 改帳號
4. 改用具administratorsr角色的 帳號,安裝OK。
1. Windows 8.1 user: Administrator
2. Install Python 2.6.6
即便更改新版,仍持續出現"機碼用在特定狀態時無效"
3. 參考 Ref 改帳號
4. 改用具administratorsr角色的 帳號,安裝OK。
2014年9月1日 星期一
PowerShell Basic -- I Foreach
To start or stop VMs (W7SQLH2V1 - W7SQLH2V3)
1. Start VMs
$VM = Get-VM -Name "W7SQLH2*"
Foreach ($iVM in $VM)
{
Start-VM -VM $iVM
}
2. Stop VMs
$VM = Get-VM -Name "W7SQLH2*"
Foreach ($iVM in $VM)
{
Stop-VM -VM $iVM
}
3. Stop a classroom and then start another classroom
$VM1 = Get-VM -Name "W7SQL*"
Foreach ($iVM in $VM1)
{
Stop-VM -VM $iVM
}
$VM2 = Get-VM -Name "W7eclipse*"
Foreach ($iVM in $VM2)
{
Start-VM -VM $iVM
}
4. VMM 2008 Module import
Add-PSSnapin Microsoft.SystemCenter.VirtualMachineManager
Get-VMMServer -ComputerName serverRealName
$VM2 = Get-VM -Name "W7eclipse*"
Foreach ($iVM in $VM2)
{
Stop-VM -VM $iVM
}
1. Start VMs
$VM = Get-VM -Name "W7SQLH2*"
Foreach ($iVM in $VM)
{
Start-VM -VM $iVM
}
2. Stop VMs
$VM = Get-VM -Name "W7SQLH2*"
Foreach ($iVM in $VM)
{
Stop-VM -VM $iVM
}
3. Stop a classroom and then start another classroom
$VM1 = Get-VM -Name "W7SQL*"
Foreach ($iVM in $VM1)
{
Stop-VM -VM $iVM
}
$VM2 = Get-VM -Name "W7eclipse*"
Foreach ($iVM in $VM2)
{
Start-VM -VM $iVM
}
4. VMM 2008 Module import
Add-PSSnapin Microsoft.SystemCenter.VirtualMachineManager
Get-VMMServer -ComputerName serverRealName
$VM2 = Get-VM -Name "W7eclipse*"
Foreach ($iVM in $VM2)
{
Stop-VM -VM $iVM
}
訂閱:
文章 (Atom)