show code js

2012年12月19日 星期三

NTP


  • 網域中僅PDC為NTP SERVER並可與網際網路時間校時,其餘SERVER、PC均向PDC校時
  • PDC
    • 「開始」中的「執行」輸入下二行指令來進行設定
    • w32tm /config /syncfromflags:manual /manualpeerlist:time.nist.gov
    • w32tm /config /update
    • 請先測試 被對時的外部網域NTP SERVER是否能正常運作
  • DC、成員伺服器、終端電腦
    • net time /querysntp (當 Type = NT5DS 便不會向外校時)
    • net time /set 同步
  • GPO 啟用群組原則
    • 陸續展開「電腦設定」「系統管理範本」「系統」「Windows時間服務」「時間提供者」
    • 啟用 Windows NTP 伺服器(若要讓 client 電腦與非PDC主機對時,則啟用另二個)

VPN


  1. Install remote and route role
  2. In install,click checkbox VPN and Route, next finish
  3. start VPN SERVER of local server name contact
  4. tag「general」at router,choose「LAN and pppoe be route」
  5. 「Security」 when you don`t have any RADIUS SERVER to use WINDOWS account check
  6. tag「IP」please create DHCP SERVER first,before choose「RAS」
  7. Configuare AD/account connect server time limit and work status
  8. can use sql server to record
  9. principle「connect remote Microsoft route and remote read write server」,click「contact」,edit setting item,click IP of tag,allow user account can get ip address, and you can set a IP to user in AD/user account

wins


一、安裝WINS SERVER角色
 二、設定複寫或推入(出)其他WINS SERVER
 三、可使用sql記錄資料

WinMerge


  1. 安裝完後必調設定
    1. 一般
      1. 自動捲至最初差異
    2. 比較
      1. 忽略空白處之任何差異
      2. 忽略空白行
      3. 忽略換行字元之差異(Windows/Linux/Mac)
    3. 編碼
      1. UTF-8>65001
      2. SJIS>932

Enter key change to Tab key with TabIndex



$(document).ready(function(){
    $('input, textarea, select').not( $(':button') ).keypress(function (event) {
        if (event.keyCode == 13) {
            if ($(this).attr("type") !== 'submit'){
var tabindex = $(this).attr('tabindex');
if( tabindex == 0 )
{
tabindex = 1;
}
else
{
tabindex++;
}
$('select[tabindex=' + tabindex + '],input[tabindex=' + tabindex + '],textarea[tabindex=' + tabindex + ']').focus();
                $(this).blur();
                return false;
            }
        }
    });
});



2012年12月14日 星期五

new method of last xcode version


Xcode 4.5.2

1.create a project : new_project
2.add a button in viewcontroller
3.hold right button of mouse and to new_projectViewController.h, will create a class : set name as myButton
4.hold right button of mouse and to new_projectViewController.m, it will create a function : use id , and set name as myButton
5.in function add some code
[sender setTitile:@"click"forState:normal];
6.run simulator
7.click button will change title to "click"

those different old version of xcode ...