DELL PERC 6/i on FreeBSD
此快raid卡為Lsi 代工
基本上差不多的’效能’
Lsi的raid 在6.1版後 全面進化 核心支援 sata sas 用起來粉快樂
以下裝置系統:
CPU: Dual Core AMD Opteron(tm) Processor 165 (1809.28-MHz K8-class CPU)
Origin = “AuthenticAMD” Id = 0x20f32 Stepping = 2
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x1
AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!>
AMD Features2=0x3<LAHF,CMP>
Cores per package: 2
FreeBSD PHP4 PHP5 APACHE1 APACHE22 共存
說明現在公司因為支前專案採用PHP4 APACHE1.3 要轉換到PHP5 APACHE22 其中又不使服務中斷 只好再一台系統上同時安裝兩種
以下只說明 另外安裝的PHP5 APACHE22
Freebsd 安裝 iftop
引用來源 https://blog.shian.tw/iftop.html/trackback
安裝:
cd /usr/ports/net-mgmt/iftop
make install clean
使用:
# iftop -i eth0
參數說明:
-i: 監控網路卡介面
-B: 以bytes為單位
-n: 以IP顯示不用DNS反解
-N: 只顯示port不顯示服務名稱
-F: 堅看某一網段的網路狀態
Apache DDOS mod_evasive20設定檔
LoadModule evasive20_module modules/mod_evasive20.so
DOSHashTableSize 3097 # 記錄黑名單的尺寸
DOSPageCount 2 # 每個頁面被判斷為dos攻擊的讀取次數
DOSSiteCount 50 # 每個站點被判斷為dos攻擊的讀取部件(object)的個數
DOSPageInterval 1 # 讀取頁面間隔秒
php execl dde
<?<br />
$excel =new COM(“Excel.Application”)or die(“Unable to instanciate Excel”);<br />
print “Loaded excel,version {$excel->Version}n”;<br />
$excel->Visible =0;<br />
$book=$excel->Workbooks->open(“c://dde.xls”);<br />
$sheet=$book->Worksheets(“Sheet1”);<br />
$a=$excel->DDEInitiate(“Excel”,“c://dde.xls”);<br />
$c =$excel->DDEExecute($a,“A1:D1”);<br />
<span style=“display: none;">(http://www.GetJetso.com - 著數網)</span> $Range=$sheet->Range(“A1:D1”);<br />
$cell=$Range->Cells(1,4);<br />
echo $cell->value;<br />
$excel->DDETerminate($a);<br />
$excel->Workbooks->Close();<br />
unset($excel);<br />
unset($a);<br />
?>
iPhone SDK 相關網站
iPhone SDK Core Web Sites
- iPhone Dev Center
- iPhone Developer Program
- iPhone Tech Talk World Tour
- Apple Developer Forums: iPhone Development
What is the iPhone SDK?
- iPhone OS – Wikipedia, the free encyclopedia
- iPhone SDK comparison chart – Engadget
- The unofficial iPhone SDK: Guide to writing native iPhone applications – iPhone Atlas
iPhone SDK Books
- The iPhone Developer’s Cookbook: Building Applications with the iPhone SDK (Developer’s Library)
- Beginning iPhone Development: Exploring the iPhone SDK (Beginning)
- iPhone SDK Development
- iPhone SDK Application Development: Building Applications for the AppStore
- iPhone in Action: Introduction to Web and SDK Development
- iPhone Programmer’s Road Map: A Guided Tour of the Official SDK
- iPhone SDK Programming: Developing Mobile Applications for Apple iPhone and iPod touch
- Xcode 3 Unleashed
- Cocoa(R) Programming for Mac(R) OS X (3rd Edition)
- Professional iPhone and iPod touch Programming: Building Applications for Mobile Safar
- Core Animation for Mac OS X and the iPhone: Creating Compelling Dynamic User Interfaces
iPhone SDK Forums
iPhone 註冊開發使用
當完成購買後 所登入頁面會是

並開始引導到註冊使用開發裝置畫面

輸入你所要的App ID

輸入供開發用的裝置 名稱簡介 並輸入裝置的uid
uid是裝置的獨立唯一的編碼 全世界只會有你這個編碼不會重複 可以在用xcode的device內看到
加入 iPhone Developer
話說iPhone 因該紅了一年多了…
一直沒機會用到他 直到最近聽到可以加入 iPhone 開發平台 並可以在上面開並發行應用程式而且
還可以賺錢
真是太致命的殺傷力…. 沒想到毒蘋果 要變甜了
Apache的rewrite的重寫相關的參數
Apache mod_rewrite規則重寫的標誌一覽
R[=code](force redirect) 強制外部重定向
強制在替代字符串加上http://thishost[:thisport]/前綴重定向到外部的URL.如果code不指定,將用缺省的302 HTTP狀態碼。
F(force URL to be forbidden)禁用URL,返回403HTTP狀態碼。
G(force URL to be gone) 強制URL為GONE,返回410HTTP狀態碼。
P(force proxy) 強制使用代理轉發。
L(last rule) 表明當前規則是最後一條規則,停止分析以後規則的重寫。
N(next round) 重新從第一條規則開始運行重寫過程。
C(chained with next rule) 與下一條規則關聯
如果規則匹配則正常處理,該標誌無效,如果不匹配,那麼下面所有關聯的規則都跳過。
T=MIME-type(force MIME type) 強制MIME類型
NS (used only if no internal sub-request) 只用於不是內部子請求
NC(no case) 不區分大小寫
QSA(query string append) 追加請求字符串
NE(no URI escaping of output) 不在輸出轉義特殊字符
例如:RewriteRule /foo/(.) /bar?arg=P1%3d$1 [R,NE] 將能正確的將/foo/zoo轉換成/bar?arg=P1=zed
PT(pass through to next handler) 傳遞給下一個處理
例如:
RewriteRule ^/abc(.) /def$1 [PT] # 將會交給/def規則處理
Alias /def /ghi
S=num(skip next rule(s)) 跳過num條規則
E=VAR:VAL(set environment variable) 設置環境變量
安裝php mssql 模組 使用FreeTDS編譯遇到的問題
freetds-0.82 目前檔案有所變動以致變異上造成錯誤
必須修改
ext/mssql/config.m4
檔案
| Revision 1.9.2.2.2 | Revision 1.9.2.2.2.1 |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| … |
| 25 |
| 26 |
| 27 |
| 28 |
| 29 |
| 30 |
| 31 |
| 32 |
| 33 |
| 34 |
| 35 |
| 36 |
| 37 |
| 38 |
| 39 |
| 40 |
| 41 |
| 42 |
| 43 |
| 44 |
| 45 |
| 46 |
| 47 |