加入 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 |
IE6 卡到陰….
話說小弟開發某個web js 在ie6必須 按f5重整才能正常run…..
卡了很久起初懷疑沒有讀到js …………..
使用setTimeout(init, 100);
Zend Framework(一)
Zend Framework
**屁話:**寫這些東西是一方面紀錄,並希望再寫完文章時成功開發一個專案.
Zend Framework
我認為他是眾多”工具”的一個代表. 工具不就是要拿來用,
而我們程式開發用他我們就是使用著.所以很多人有不一樣的用法~~~
以下是我所規劃的理想用法 歡迎討論
筆記 有用的RC.CONF
sshd_enable=”YES”
syslogd_enable=”YES”
syslogd_flags=”-ss”
# 註:-s 是啟用安全模式,不記錄遠端傳送過來的 log
# 如果 -ss 是關閉 port,而且也禁止將 log 傳送到遠端的電腦。
sendmail_enable=”NO”
# 註:NO 是僅提供 localhost 的 mail 功能,如果要完全關閉 sendmail 要用 NONE
inetd_enable=”NO”
# 註:4.4-Release 版之後的 FreeBSD 預設 /etc/initd.conf 中的所有服務都是 # 註解掉的
# 如果你確定你的 Server 不提供 inetd 服務,可以加上這行
tcp_drop_redirect=”YES”
# Don’t allow remote OS fingerprinting of your box
icmp_drop_redirect=”YES”
# 註:防止 DoS 攻擊,最好把 ICMP 重導向的封包丟棄
icmp_log_redirect=”YES”
# 註:將丟棄的 ICMP 重導向封包 log 記錄下來
clear_tmp_enable=”YES”
# 開機時清除 /tmp 的內容
icmp_bmcastecho=”NO”
# 不回應 broadcast ping 封包
fsck_y_enable=”YES”
# 註:do fsck -y if the initial preen fails
update_motd=”NO”
# 註:update version info in /etc/motd (or NO)
named_enable=”YES”
# 提供 DNS 的服務
ntpdate_enable=”YES”
ntpdate_flags=”clock.stdtime.gov.tw”
# 開機自動校時
keyrate=”fast”
# 重覆按下按鍵的速度
FreeBSD 7.0-RELEASE了
引用http://www.freebsd.org/releases/7.0R/announce.html
Date: Wed, 27 Feb 2008 17:19:52 -0500
From: Ken Smith kensmith@FreeBSD.org
To: freebsd-announce@FreeBSD.org
Subject: [FreeBSD-Announce] FreeBSD 7.0-RELEASE Available
The FreeBSD Release Engineering Team is pleased to announce the availability of FreeBSD 7.0-RELEASE. This is the first release from the 7-STABLE branch which introduces many new features along with many improvements to functionality present in the earlier branches. Some of the highlights:
-
Dramatic improvements in performance and SMP scalability shown by various database and other benchmarks, in some cases showing peak performance improvements as high as 350% over FreeBSD 6.X under normal loads and 1500% at high loads. When compared with the best performing Linux kernel (2.6.22 or 2.6.24) performance is 15% better. Results are from benchmarks used to analyze and improve system performance, results with your specific work load may vary. Some of the changes that contribute to this improvement are:
rrdtool create 網路圖表檔案
rrdtool create test.rrd -s 300 \
DS:if02:COUNTER:600:U:U \
DS:if03:COUNTER:600:U:U \
DS:if04:COUNTER:600:U:U \
DS:if05:COUNTER:600:U:U \
DS:if06:COUNTER:600:U:U \
DS:if07:COUNTER:600:U:U \
DS:if08:COUNTER:600:U:U \
DS:if09:COUNTER:600:U:U \
DS:if10:COUNTER:600:U:U \
DS:if11:COUNTER:600:U:U \
DS:if12:COUNTER:600:U:U \
DS:if13:COUNTER:600:U:U \
DS:if14:COUNTER:600:U:U \
DS:if15:COUNTER:600:U:U \
DS:if16:COUNTER:600:U:U \
DS:if17:COUNTER:600:U:U \
DS:if18:COUNTER:600:U:U \
DS:if19:COUNTER:600:U:U \
DS:if20:COUNTER:600:U:U \
DS:if21:COUNTER:600:U:U \
DS:if22:COUNTER:600:U:U \
DS:if23:COUNTER:600:U:U \
DS:if24:COUNTER:600:U:U \
DS:if25:COUNTER:600:U:U \
DS:if26:COUNTER:600:U:U \
DS:if27:COUNTER:600:U:U \
DS:if28:COUNTER:600:U:U \
DS:if29:COUNTER:600:U:U \
DS:if30:COUNTER:600:U:U \
DS:if31:COUNTER:600:U:U \
DS:if32:COUNTER:600:U:U \
DS:if33:COUNTER:600:U:U \
DS:if34:COUNTER:600:U:U \
DS:if35:COUNTER:600:U:U \
RRA:AVERAGE:0.5:1:603 \
RRA:AVERAGE:0.5:6:603 \
RRA:AVERAGE:0.5:24:603 \
RRA:AVERAGE:0.5:288:603 \
RRA:MIN:0.5:1:603 \
RRA:MIN:0.5:6:603 \
RRA:MIN:0.5:24:603 \
RRA:MIN:0.5:288:603 \
RRA:MAX:0.5:1:603 \
RRA:MAX:0.5:6:603 \
RRA:MAX:0.5:24:603 \
RRA:MAX:0.5:288:603