2015年1月10日 星期六

Phonegap Helloworld for Android

Ref: http://www.moke.tw/wordpress/computer/advanced/438
        http://inspire.twgg.org/programming/html-css/item/389-html5-started-teaching.html
Ref1: Phonegap, Ref2: HTML5
1. Prepare HTML5 File (index.html,  the name of file has to be lower case letters)
<!DOCTYPE html>
<html>
      <head>
              <meta charset="UTF-8">
              <title>Example document</title>
       </head>
     <body>
              <header>
                    <h1><a href="#">Welcome to my page</a></h1>
               </header>
           <nav>
                       <ul>
                                <li><a href="#">Home</a></li>
                             <li><a href="#">About</a></li>
                            <li><a href="#">Contact</a></li>
                  </ul>
               </nav>
              <section>
                   <article>
                           <header>
                                    <h3><a href="#">Article 1</a></h3>
                                </header>
                           <section>
                                   <p>Lorem ipsum...</p>
                         </section>
                  </article>
                  <article>
                           <header>
                                    <h3><a href="#">Article 2</a></h3>
                                </header>
                           <section>
                                   <p>Lorem ipsum...</p>
                         </section>
                  </article>
          </section>
          <aside>
                     <h1><a href="#">Aside content</a></h1>
                    Lorem ipsum dolor sit amet..
              </aside>
            <footer>
                    <address>
                           Contact us at:<br />
                                <a href="http://itc.hwu.edu.tw/">itc.hwu.edu.tw</a>
                   </address>
          </footer>
   </body>
</html>
2. Prepare Config.xml
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns   = "http://www.w3.org/ns/widgets"
xmlns:gap   = "http://phonegap.com/ns/1.0"
id    = "tw.moke.testing"
versionCode = "10"
version     = "0.2.0" >

<name>HelloWorld</name>

<description>
專案描述
</description>

<author href="http://itc.hwu.edu.tw" email="092012@mail.hwu.edu.tw">
csjou
</author>

<!-- current version of PhoneGap -->
<preference name="phonegap-version" value="3.5.0" />
<!-- 設定畫面固定為水平(landscape)、垂直(portrait) -->
<preference name="orientation" value="landscape" />
<!-- 加入其它plugin設定 -->
</widget>
3. Zip both of them into a file say Helloworld.zip
4. Upload into Phonegap Builder
5. Select App platform.
6. Scan QR code (Download apk and install)


2014年12月10日 星期三

1. Simplify Kinect code based on version 1.8 --- Audio event

Ref : AudioBasic-WPF
This example demonstrates the audio sensor application by 6 steps.

// 1. Add Ref Kinect 1.8
// 2. Add namespace
using Microsoft.Kinect;

namespace AudioAngleEx1
{
    class Program
    {
        static void Main(string[] args)
        {
            // 3. Create Sensor object
            KinectSensor Sensor = KinectSensor.KinectSensors[0];
            // 4. Add event method
            Sensor.AudioSource.BeamAngleChanged += AudioSource_BeamAngleChanged;
            // 5. Start Sensor
            Sensor.Start();
            // 6. Start Microphone
            Sensor.AudioSource.Start();
            Console.WriteLine("Press 'Enter' then stop.");
            Console.ReadLine();

        }

        static void AudioSource_BeamAngleChanged(object sender, BeamAngleChangedEventArgs e)
        {
            Console.WriteLine("BeamAngle = {0} ", e.Angle);
        }
    }
}


2014年11月27日 星期四

WiFi connection was limited after 2014/11/27 update processes (Windows 10 Technical Preview 9879)

1. System
    Hardware: ASUS X450J Notebook
    OS : Windows 10 preview 9879
2. Issue
     WiFi can not access the hot spot and show limited as follows


3. Solution:
    3-1 Download wireless card driver from ASUS ( for Windows 8.1 )
    3-2 Install the driver (can not work properly)
    3-3 Hyper-V Manager : Virtual switch manager remove the virtual NAT binding with wireless)
    3-4 Re-build a virtual NAT binding with wireless card.



2014年11月6日 星期四

Update Server Core 2008 R2

1. The message shows

2. Download 
http://go.microsoft.com/fwlink/?LinkID=113199 
http://go.microsoft.com/fwlink/?LinkId=142906 

3. Move into a shared fold such as \\iccloud99\test








4. Remote log into server core host
5. Copy msu files from shared fold @  ICCloud99\test and Excute them.
Copy \\ICCloud99\test\*x64.msu
Wusa Windows6.0-KB956589-x64.msu -quiet
Wusa Windows6.0-KB956774-x64.msu -quiet


2014年10月30日 星期四

Cancel Hangouts Event.

Ref: https://support.google.com/plus/answer/2660446?hl=en
Desktop computer:
  1. Open Google+. Place your cursor in the top left corner for the Google+ main menu. Click Events.
  2. Place your cursor over the event card and click the  dropdown arrow.
  3. Click Delete Event
The dropdown arrow is in the event page rather than the list page.
2-1) Entering events list page
2-2 Click into the selected event
2-3 The dropdown arrow and the delete option is on this page.

2014年10月5日 星期日

Android 懶人包

ref: http://www.inote.tw/adt-bundle-setup-tutorial
1. Download Java SDK
   
2. Download Android 懶人包 (http://developer.android.com/sdk/index.html#download)

3. Install Java SDK
4. Unzip 懶人包
5. 執行 Eclipse 

2014年10月4日 星期六

Google Go 2 -- for

Ref : http://www.golang-book.com/5/index.htm

Hardware ASUS X450J
OS : Windows 8.1 Prof

1. Edit ForEx.go
//------------
package main

import "fmt"

func main() {
    i := 1
    for i <= 10 {
        fmt.Println(i)
        i = i + 1
    }
}
//---------------
5. Run ForEx.go