2012年9月7日 星期五

Sample Using the vPro Module

http://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/DOCS/Implementation%20and%20Reference%20Guide/default.htm

 

Snippet Demonstrating General Library Settings and Client Setup

 

$libSettingsFile = # Path of the Redirection library ini file (MC.ini)

$imrLib = New-Object Intel.Management.Redirection.MediaRedirection

 

# Initialize the Intel Media Redirection Library.

[Intel.Management.Redirection.IMRVersion]$imrVersion = New-Object Intel.Management.Redirection.IMRVersion

$imrResult = $imrLib.Init([ref] $imrVersion, $libSettingsFile)

 

# Define a redirection client based on the WsmanConnection Address

$imrClient = $imrLib.GetClientInfo($wsmanConnectionObject.Address)

 

# Add the redirection client to the Library (Library returns clientID).

$clientId = [System.UInt32]::MaxValue

$imrResult = $imrLib.AddClient($imrClient, [ref]$clientId)

 

Snippet Demonstrating Initating an SOL Session

 

  

# Create redirection session parameters (e.g. user name and password) based on the Wsman Connection.

$iderParams = $imrLib.CreateSessionParams($wsmanConnectionObject.Username, $wsmanConnectionObject.Password)

 

# Open SOL session.

$imrResult = $imrLib.SOLOpenTCPSession($clientId, $iderParams, $imrLib.GetDefaultSOLTout(), $imrLib.GetDefaultSOLParams())

 

# Recieve text by running the 'SOLRecieveText' function in loop while the session is open.

$recieveBuffer = New-Object Intel.Management.Redirection.ReceiveBuffer(20)

$imrResult = $imrLib.SOLRecieveText($clientId, $recieveBuffer)

$textRecieved = [Text.Encoding]::ASCII.GetString($recieveBuffer.Data)

 

# Send text.

$utf8 = new-Object System.Text.utf8encoding

$byteArray = New-Object byte[] 12

$textToSend = "text to send"

$utf8.GetBytes($textToSend, 0, $textToSend.Length, $byteArray, 0)

$imrResult = $imrLib.SOLSendText($clientId, $byteArray, $byteArray.Length)

 

# Close the session.

$imrResult = $imrLib.SOLCloseSession($clientId)

 

2012年9月4日 星期二

全額交割股

何謂全額交割股?

被列全額交割的股票,是指財務發生困難、重整,或停工的股票發行公司,用意在限制股票過度流通,投資該股票的風險程度極高。其交易方式也與普通股不同,全額交割股被規定禁止進行信用交易,買賣時如取銷,重新委託時需再辦理手續。因此一旦公司被宣布為全額交割股後,其股價通常會嚴重下跌。而臺灣證券交易所營業細則第四十九條第一項有規定十四款證交所可將公司股票變更為全額交割股之事由。

交易方式

一般股票的買賣,通常買賣協議的成立是「交易」,然後買賣協議的履行稱之為「交割」。
投資人買賣全額交割之股票,應於委託買賣前,預先繳交股票或價款;而被規定於全額交割股以後,證券商必需要先收到買賣股票的價款或股票,才能進行交易。買進時需先繳交全額股款,經紀商才會接受委託,代為買進;賣出時也要先繳交股票,經紀商才會接受委託代為賣出,且不接受信用交易(即不得以融資融券之方式交易)。
 

2012年5月29日 星期二

如何利用 7-zip 設定自動解壓縮並解壓縮後自動啟動程式

如何利用 7-zip 設定自動解壓縮並解壓縮後自動啟動程式

1. 先到 7-zip 下載頁 下載 7z Library, SFXs for installers, Plugin for FAR Manager 回來
2. 接著,你只要解壓縮 7zr.exe 與 7zSD.sfx 兩個檔案就可以了。其中的 Installer 目錄包含使用範例.
3. 然後新增一個文字檔 config.txt ,這是設定 SFX for installers 在執行的時候的行為,包括解壓縮時要顯示什麼標題(Title)、是否要提示使用者按下確認後進行解壓縮(BeginPrompt)、或解壓縮後要自動執行哪支程式(RunProgram)、...等等。以下是設定檔範例(備註:檔案請使用 UTF-8 編碼存檔)

;!@Install@!UTF-8!

 

Title="多奇資料庫管理系統"

BeginPrompt="您要執行 多奇資料庫管理系統 嗎?"

RunProgram="Debug\多奇資料庫管理系統.exe"

 

;!@InstallEnd@!

4. 再來,就可以先透過 7zr.exe 程式將檔案壓縮成 7z 檔。

7zr.exe a Debug.7z Debug\

5. 最後一個步驟,就是將 7zSD.sfx、config.txt、以及 Debug.7z 三個檔案合併成一個可執行檔,我們可以利用 Windows 內建的 copy 指令搭配 /B 參數完成這三個檔案的合併動作。如下指令中,最後一個參數是最後要輸出的執行檔名稱。

copy /b 7zSD.sfx + config.txt + Debug.7z Debug.exe



 

2012年5月7日 星期一

Nuvoton Flash Update Tool Version 4.1.2

Nuvoton Flash Update Tool Version 4.1.2

----------------------------------------

 

Copyright (C) 2009 Nuvoton Technology Corporation. All Rights Reserved.

 

Usage: flupdate [options] <binary file>

       

<binary file>

     A file containing the data to program into flash, in binary format

        

Options:

     -h                 Show program usage

     -v                 Verbose operation - create a log file and also report explicit error messages                        

     -shf               The system uses shared flash (i.e., BIOS and EC FW are located on the same flash device).

     -nshf              The system does not use shared flash (i.e., only FW is on the EC flash).

                        Note that by default (i.e., -shf or -nshf are not

                        selected), the flash layout (i.e., whether the system

                        uses shared flash or not) is detected automatically.

     -c <file name>     Flash Configuration file name. By default, the tool  looks for a configuration file named flupdate.cfg

     -x <exit type>     Select termination option:

                        0 = Normal Exit

                        1 = Reset EC                                     

                        2 = Goto Boot Block (default)         

     -d <file name>     Dump the flash data to the <file name> file before downloading/comparing the <binary file> data

     -compare           Compare the given binary file with the flash data.

                        In this mode, flash is not programmed. If this flag is provided in addition to the -ofs flag (see below), only the bytes starting from <offset> are compared

     -bbl               Ignore protected sectors

     -noverify          Do not verify flash contents after programming

     -nocomp            Program the flash without first comparing its contents to the binary file data.

                        (By default, the contents of each section are compared to the source file, and the section is programmed only if it is different)

     -noreboot          Do not ask the user to restart the computer after download finished                     

     -nopause           Start the download/compare without the user approval.

                        In addition, the application terminates automatically after downloading the binary file to the  flash (without restart the computer)

     -dislusb           For DOS only: disable the Legacy USB SMI (only in Intel  chipsets) during the flash update process

     -cba <address>     Set the Configuration Base Address of the device (in   hex format); otherwise, try to locate the device at the  following addresses (in this order): 0x164E, 0x2E, 0x4E

     -novr              Ignore BIOS model and version check

     -vrd               Verify the flash contents after programming using read command

     -rfp               Remove Flash Protection when the protection window registers are accessible (i.e., not locked)

     -ofs <offset>      Load the provided binary file to the flash starting at offset <offset> from flash start. <offset> must be

                        aligned with the start address of a flash sector. If  this flag is provided in addition to the -compare flag,only the bytes starting from <offset> are compared

     -pfu               Enable FW to perform operations before the Flash   Update process starts (Pre Flash Update)

     -ocv               Override Calibration Values in the flash with the  values provided in the binary file  

     -genbsf <TSF name> Generate a Binary Script File (BSF) from a Text Script   File (TSF). The BSF name is the same as the TSF, but  with a different extension (*.bsf).

     -runbsf <BSF name> Run the commands in the Binary Script FIle (BSF)

                        during the Flash Update process

     -vm <value>        For DOS only. This flag is used to change the default   value of the video mode. It should be used only if  there is a known graphic limitation in the system.

                        Supported values are 18 (the default mode, uses 16   colors), 17 (uses 2 colors) and 0 (text mode)

     -s                 Silent mode (Windows only). This flag eliminates  any user interaction and minimizes the visual effects

     -bec               Binary Exit Code. The default exit code upon failure is a non-zero value. This flag limits the non-zero  value to 1. Thus, the exit code is binary (0 for  success, 1 for failure).

 

==========================

Sincerely,
Charles Chang
張基財

American Megatrends Taiwan Branch

MegaRAC BU Sales Dept. MSG-Engineer

11F, No. 2 Sec. 3 MinChuan E. Road
Taipei 104, Taiwan, R.O.C.

+886-2-2516-8887 #6903

 

2012年2月20日 星期一

Change MAC Address

if your machine have default mac address like 88-88-88-88-87-88 , it will cause conflict in the network
you can change your mac address by this way,
device manager->network adapters->properties