Time of Update: 2014-10-14
標籤:macos php apache2Mac 下內建php + apache。但是版本不是最新的。網上找了半天都沒有找到比較好的案例。只好自己琢磨了好久。我的本子上php 是5.4的,apache 是2.2的。昨天在練習php的時候,遇到了一個特性,PHP5.4 不支援。只好進行下升級。推薦用MacPort來進行下載安裝,主要是方便管理。安裝PHPsudo port install php55;安裝好php55 後你會發現在命令列下輸入php後按Tab鍵 會出現php55的
Time of Update: 2014-10-14
標籤:魔術方法 魔術常量 php閉包 php匿名函數 當我們學習 對象的時候,經常會聽到老師們說世界萬物皆對象,那麼也一定會聽到魔術方法和魔術常量等概念,那我們在學習溫習的時候自己隨手總結的:php中常見的魔術方法有哪些呢?1)魔術方法都以
Time of Update: 2014-10-14
標籤:style blog http color ar 檔案 sp on log 不錯的地址:http://www.cnblogs.com/flashbar/archive/2013/01/23
Time of Update: 2014-10-14
標籤:style blog http color io 使用 ar java for 方式一:
Time of Update: 2014-10-13
標籤:style http color io os 使用 ar for 檔案 Apache Bin目錄下的 ab.exe(ApacheBench)
Time of Update: 2014-10-13
標籤:io os 使用 java strong sp 資料 on 問題 螞蜂窩旅遊網是一家提供旅遊攻略服務的網站,其提供各類目的地旅遊攻略路書,涵蓋當地吃住行遊購娛等各方面豐富詳實的旅遊資訊。
Time of Update: 2014-10-13
標籤:webserviceWebservice攔截器:在webservice請求過程中,動態操作請求和響應的資料分類按照所處的位置分:伺服器端攔截器 用戶端攔截器按照訊息的方向分:入攔截器 出攔截器按照定義者分:系統攔截器
Time of Update: 2014-10-13
標籤:單例模式 今天看來一下設計模式裡面的單例模式,所謂單例模式就是無論執行個體化多少此類,整個應用之中僅僅產生一個對象執行個體,所有的所有的對象都只是指向這一個對象執行個體的引用而已。下面是PHP實現單例模式的代碼。<?phpclass Person{ private $name; private $sex; public function setName($name) {
Time of Update: 2014-10-13
標籤:style blog http color io ar java sp div <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Time of Update: 2014-10-13
標籤:firefox jquery 瀏覽器 指令碼 選取器 Firefox下JQuery選取器之[attribute^=value]使用注意事項之前寫的一個指令碼中用到了var bindAttrs = $("[databind^=‘attr‘", item);大家都看出存在的問題了吧?這指令碼用了一段時間了,
Time of Update: 2014-10-13
標籤:blog http io os ar for sp 資料 art PHP預設識別的資料類型是application/x-www.form-urlencoded標準的資料類型。 p
Time of Update: 2014-10-13
標籤:style blog http color io os 使用 ar java reload
Time of Update: 2014-10-13
標籤:style http color os 使用 ar sp 資料 div server推送(Server Push)
Time of Update: 2014-10-13
標籤:使用 java on 代碼 html javascript htm as app innerhtml屬於對象的一個屬性,一般用於向已經存在的標籤中寫入內容,或者讀取標籤的內容。innert
Time of Update: 2014-10-14
CSS 所有的列表樣式類型,css列表樣式類型<html><head><style type="text/css">ul.none {list-style-type: none}ul.disc {list-style-type: disc}ul.circle {list-style-type: circle}ul.square {list-style-type: square}ul.decimal {list-style-type:
Time of Update: 2014-10-14
zoj 3823 Excavator Contest(構造),zojexcavator題目連結:zoj 3823 Excavator Contest題目大意:一個人開著挖掘機要在N*N的格子上面移動,要求走完所有的格子,並且轉完次數要至少為n*(n-1) -
Time of Update: 2014-10-14
ural 1707. Hypnotoad's Secret(線段樹),uralhypnotoad題目連結:ural 1707. Hypnotoad's Secret題目大意:給定N和M,然後N組s0, t0, Δs, Δt, k,每組可以計算出k個星星的座標;M組a0, b0, c0, d0, Δa, Δb, Δc, Δd,
Time of Update: 2014-10-14
zoj 3826 Hierarchical Notation(類比),zojhierarchical題目連結:zoj 3826 Hierarchical
Time of Update: 2014-10-14
JOS 不能進入lab2 問題的解決,joslab2JOS 不能進入lab2 問題的解決 這個鳥問題折騰了我好久!lab2是需要 kern/pmap.c的!但是這裡沒有首先要git checkout -b lab2 origin/lab2(只要做好上面這一步,就可以確保能夠調整好檔案了,坑啊!到現在都6個小時不止了!)接著git fetch然後git merge lab1 (
Time of Update: 2014-10-14
飄逸的python,飄逸pythonevent系統的核心至少滿足:1.存放事件的容器,可對事件添加刪除2.事件的觸發fire上代碼.class Event(list): def __call__(self, *args, **kwargs): for f in self: f(*args, **kwargs)def f(arg): print 'execute with arg',arge = Event()e.append(f)e(