2014年3月24日 星期一

台灣 4G(LTE) 頻段

(一) 700 MHz 頻段:(Band 28)
A1:上703~713MHz;下758 ~768MHz(亞太)      (上下各10MHz)
A2:上713~723MHz;下768 ~778MHz(遠傳)      (上下各10MHz)
A3:上723~733MHz;下778 ~788MHz(國基)(鴻海)  (上下各10MHz)
A4:上733~748MHz;下788 ~803MHz(台哥大)     (上下各15MHz)
(794-803MHz已有現存低功率射頻電機設備(低功率無線麥克風))

(二) 900 MHz 頻段:(Band 8)
B1:上885~895MHz;下930 ~940MHz(台灣之星)(頂新)(上下各10MHz)(2019/1/1有使用權)
B2:上895~905MHz;下940 ~950MHz(中華)      (上下各10MHz)(2017/7/1有使用權)
B3:上905~915MHz;下950 ~960MHz(國基)      (上下各10MHz)(2017/7/1有使用權)

(三) 1800 MHz 頻段:(Band 3)
C1:上行1710~1725MHz;下行1805 ~1820MHz(台哥大) (上下各15MHz)(2017/7/1有使用權)
C2:上行1725~1735MHz;下行1820 ~1830MHz(中華)  (上下各10MHz)(2017/7/1有使用權)
C3:上行1735~1745MHz;下行1830 ~1840MHz(遠傳)  (上下各10MHz)(2017/7/1有使用權)
C4:上行1745~1755MHz;下行1840 ~1850MHz(遠傳)  (上下各10MHz)(2017/7/1有使用權)
C5:上行1755~1770MHz;下行1850 ~1865MHz(中華)  (上下各15MHz)(最快2013年底可用)


參考網址:
台灣NCC頻段
UMTS bands

台灣證卷交易所

每日收盤行情
http://www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report201403/A11220140324MS.php?select2=MS&chk_date=103/03/24


各股日成交資訊
http://www.twse.com.tw/ch/trading/exchange/STOCK_DAY/STOCK_DAYMAIN.php

2014年3月9日 星期日

struct(C++/CLI)

public value struct Sname {
    Int32 aa;
};

private不能跨assembly,public才能跨assembly(預設為private)

value, ref 差異:value struct在stack,ref struct在heap
       一般來說,struct都很小,適合建在stack,速度較快。

Array (C++/CLI)


1D
array<int>^ a1 = {1,2,3,4,5};
array<int>^ a1 = gcnew array<int>(ARRAY_SIZE);

2D
array< int , 2 >^ local = gcnew array< int, 2 >(ARRAY_SIZE, ARRAY_SIZE);


Reference:

Declaration of a CLR Array
http://msdn.microsoft.com/en-us/library/ms235236%28VS.80%29.aspx

How to: Create Multidimension Arrays
http://msdn.microsoft.com/en-us/library/2xfh4c7d%28VS.80%29.aspx

宣告一個二維陣列
http://social.msdn.microsoft.com/Forums/zh-TW/215bb670-eee8-4bf1-adb2-824519902a26

2014年2月17日 星期一

ASCII <-> Unicode(CLI)

A sample code from msdn(Unicode to ASCII)

String^ unicodeString = "This string contains the unicode character Pi (\u03a0)";

// Create two different encodings.
Encoding^ ascii = Encoding::ASCII;
Encoding^ unicode = Encoding::Unicode;

// Convert the string into a byte array.
array<Byte>^unicodeBytes = unicode->GetBytes( unicodeString );

// Perform the conversion from one encoding to the other.
array<Byte>^asciiBytes = Encoding::Convert( unicode, ascii, unicodeBytes );

// Convert the new Byte into[] a char and[] then into a string.
array<Char>^asciiChars = gcnew array<Char>(ascii->GetCharCount( asciiBytes, 0, asciiBytes->Length ));
ascii->GetChars( asciiBytes, 0, asciiBytes->Length, asciiChars, 0 );
String^ asciiString = gcnew String( asciiChars );

// Display the strings created before and after the conversion.
Console::WriteLine( "Original String*: {0}", unicodeString );
Console::WriteLine( "Ascii converted String*: {0}", asciiString );


Please check the page:
http://msdn.microsoft.com/zh-tw/library/kdcak6ye%28v=vs.110%29.aspx

http://studio.wellwind.idv.tw/archives/197

2014年2月10日 星期一

C# (keyword: set, get, value)

set: A set accessor is used to assign a new value.(只是增加一些變數(pulbic)的方便性,asign時, 會跑進來)

get: A get property accessor is used to return the property value.(只是增加一些變數(pulbic)的方便性, 取值時, 會跑進來)

value: The value keyword is used to define the value being assigned by the set accessor.(即assign進來的值)


請看下面範例(來源:微軟官網, 如有侵權, 請來告知, 馬上刪除):
class TimePeriod
{
    private double seconds;

    public double Hours
    {
        get { return seconds / 3600; }
        set { seconds = value * 3600; }
    }
}


class Program
{
    static void Main()
    {
        TimePeriod t = new TimePeriod();

        // Assigning the Hours property causes the 'set' accessor to be called.
        t.Hours = 24;

        // Evaluating the Hours property causes the 'get' accessor to be called.
        System.Console.WriteLine("Time in hours: " + t.Hours);
    }
}
// Output: Time in hours: 24

------------------------------------------------------------
This is an example of a get accessor in an auto-implemented property

class TimePeriod2
{
    public double Hours { get; set; }
}