2013年1月31日 星期四

設定Windows Server 2008 為NTP時間伺服器 & 客戶端設定

1. Windows NTP設定
設定步驟如下
win server 2008
reference: http://www.dotblogs.com.tw/halladay/archive/2012/05/11/72124.aspx
win xp
http://windgo.pixnet.net/blog/post/22048041-ntp-server-in-winxp

修改
net stop w32timer
net start w32timer

w32tm /config /update

  net start

linux ntpdate 設定


[root@clientlinux ~]# ntpdate [-dv] [NTP IP/hostname]
選項與參數:
-d :進入除錯模式 (debug) ,可以顯示出更多的有效資訊。
-v :有較多訊息的顯示。

[root@clientlinux ~]# ntpdate 192.168.100.254
28 Jul 17:19:33 ntpdate[3432]: step time server 192.168.100.254 offset -2428.396146 sec
# 最後面會顯示微調的時間有多少 (offset),因為鳥哥這部主機時間差很多,所以秒數...

[root@clientlinux ~]# date; hwclock -r
四  7月 28 17:20:27 CST 2011
西元2011年07月28日 (週四) 18時19分26秒  -0.752303 seconds
# 知道鳥哥想要表達什麼嗎?對啊!還得 hwclock -w 寫入 BIOS 時間才行啊!

[root@clientlinux ~]# vim /etc/crontab
# 加入這一行去!
10 5 * * * root (/usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w) &> /dev/null

2. crontab 設定
crontab -e
可以對外的狀況
*/5 * * * * (/usr/sbin/ntpdate  clock.stdtime.gov.tw && /sbin/hwclock -w) &> /root/timesync.log
公司內部的設定,設定內部架設好的NTP的IP
*/5 * * * * (/usr/sbin/ntpdate 10.1.1.167 && /sbin/hwclock -w) &> /root/timesync.log

每五分鐘校正一次時間

2013年1月10日 星期四

忘記CentOS 密碼的找回方式

1. 可以到機器前
2. 重開機進入grub畫面3. 加入single,結果如下: kernel /vmlinuz-2.6.18-8.el5 single ro root=LABEL=/ rhgb quiet 4. 進入後出現提示符號# 代表成功啦 passwd root 改一下密碼


reference:http://mypaper.pchome.com.tw/joanneandy1479/post/1321478063

2012年12月6日 星期四

申請Apple Developer Program 之公司用戶

公司資訊:最重要的是要準備好英文公司名稱及地址,及填寫負責人英文名

透過D&B去申請DUNS碼



中文拼音查詢
http://www.iq-t.com/SYSCOM/pinyin1.asp

中英文地址轉換
http://www.post.gov.tw/post/internet/f_searchzone/index.jsp?ID=190103#result

詳細資料請參考:
http://changyy.pixnet.net/blog/post/31155259-申請-ios-developer-program-之-company-版
http://blog.xuite.net/superada0923/blog/61411287-公司用iOS+Developer+Program帳號申請

2012年11月25日 星期日

無米樂 - 長期禾作

QRCode
您是否看過在稻田裡啄食害蟲的稻間小黃鴨呢?
您是否有用過空氣砲驅趕麻雀的經驗呢?

我們身處一個高度現代化發展的社會,
卻老是擔心吃進五臟廟的非自然化學元素,
所以簡單無污染的耕作方式,
是一門重要的課題。

這是個有趣的保護稻米小遊戲。
藉由稻間鴨吃掉害蟲,空氣砲趕走麻雀,
來保護稻米成長。

iOS下載連結:https://itunes.apple.com/us/app/happy-rice/id573844266?ls=1&mt=8








2012年11月21日 星期三

windows 2003 server 預設沒有Asp.net

asp.net在window 2003 server上需要安裝asp.net元件後
才有辦法執行。

referrence:http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9fc367dd-5830-4ba3-a3c9-f84aa08edffa.mspx?mfr=true

To enable ASP.NET on a server running Windows Server 2003 by using the Configure Your Server wizard

1.
Click Start, and then click Manage Your Server.
2.
In the Manage Your Server window, click Add or remove a role.
3.
In the Configure Your Server wizard, click Next.
4.
In the Server Role dialog box, click Application Server (IIS, ASP.NET) and then click Next.
5.
In the Application Server Options dialog box, select the Enable ASP.NET check box.
6.
Click Next, and then click Next again.
7.
If you are prompted to do so, insert your Windows Server 2003 installation CD in the CD-ROM drive, and then click Next.
8.
When the installation is complete, click Finish.

To enable ASP.NET on a server running Windows Server 2003 by using Add or Remove Programs

1.
In Control Panel, click Add or Remove Programs.
2.
Click Add/Remove Windows Components.
3.
In the Components box in the Windows Components Wizard, select the Application Server check box, and then click Details.
4.
In the Application Server dialog box, select the ASP.NET check box, and then click OK.
5.
In the Windows Components Wizard, click Next to begin installing ASP.NET.
6.
When the Windows Components Wizard has finished configuring Windows Server 2003, click Finish.

2012年11月4日 星期日

蘋果電腦相關的客服電話及資訊


蘋果電腦消費者的客服電話
蘋果電腦台灣服務熱線     0800-095-988

https://developer.apple.com/contact/phone.php
iOS Developer服務熱線  0800 022 237

有買Apple Developer Program 的會員相關客服線上服務
https://developer.apple.com/contact/submit.php

2012年10月31日 星期三

訂製你專屬的facebook like box


The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. The Like Box enables users to:
  • See how many users already like this Page, and which of their friends like it too
  • Read recent posts from the Page
  • Like the Page with one click, without needing to visit the Page
The minimum supported plugin width is 292px.

雖然說是寬最小292px,但是還是可以設定比他小的寬度喔。

reference:http://developers.facebook.com/docs/reference/plugins/like-box/