open-source firefox add-on http://www.evolus.vn/Pencil/
online web application canvas version http://gomockingbird.com/
flash version http://iplotz.com/ 多個風格可切換 windows ,mac,手繪 介面很流暢 很酷~~
純js版 真實html模擬 完整度很高 http://justproto.com 有demo可玩
open-source firefox add-on http://www.evolus.vn/Pencil/
online web application canvas version http://gomockingbird.com/
flash version http://iplotz.com/ 多個風格可切換 windows ,mac,手繪 介面很流暢 很酷~~
純js版 真實html模擬 完整度很高 http://justproto.com 有demo可玩
從現有的專案中複製一份開啟新專案
可指定版本 有完整的複製紀錄
svnadmin create PATH_TO_MIRROR
svnadmin dump PATH_TO_REPOS | svnadmin load PATH_TO_MIRROR
單純檔案複製備份
svnadmin hotcopy source destination
–參考資料–
http://wordaligned.org/articles/how-to-mirror-a-subversion-repository
wordpress 的外掛用GeSHi引擎繪製的 http://wordpress.org/extend/plugins/wp-syntax/
if(($value['display']==0) && !($this->session->userdata('isLogin')))
continue;
$value['content'] = strip_tags($value['content']);
$value['content'] = mb_substr($value['content'],0,30,"UTF-8");
然後再 wp-includes/js/quicktags.js 這是在編輯器的html快速標籤的部份加上
原本
edButtons[edButtons.length]=new edButton("ed_code","code","","
","c");
的後面加上這個按鈕..方便輸入
edButtons[edButtons.length]=new edButton('ed_mycode','mycode','','
','z');
正在看的書
使用此程式是 CutyCapt
http://cutycapt.sourceforge.net/
他是用Qt的WebKit實做的,所以伺服器尚要裝Qt包含WebKit的開發函式庫~
可以用yum裝 ,在這環境上我用rpm自己裝..
從這個repo http://dl.atrpms.net/el5-i386/atrpms/testing/ 抓三個相關的rpm
安裝順序是,有分成 32位元 跟64位元,最好依照作業系統版本安裝,
(x32)
http://dl.atrpms.net/el5-i386/atrpms/testing/qt44-4.4.3-10_4.el5.i386.rpm
http://dl.atrpms.net/el5-i386/atrpms/testing/qt44-x11-4.4.3-10_4.el5.i386.rpm
http://dl.atrpms.net/el5-i386/atrpms/testing/qt44-devel-4.4.3-10_4.el5.i386.rpm
(x64)
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-4.4.3-10_4.el5.x86_64.rpm
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-x11-4.4.3-10_4.el5.x86_64.rpm
wget http://dl.atrpms.net/el5-x86_64/atrpms/testing/qt44-devel-4.4.3-10_4.el5.x86_64.rpm
其實中途還有裝了兩個libXi..去pboon找到的..不知道做什麼的..
ftp://ftp.pbone.net/mirror/ftp.centos.org/5.5/os/x86_64/CentOS/libXi-1.0.1-4.el5_4.i386.rpm
ftp://ftp.pbone.net/mirror/ftp.centos.org/5.5/os/x86_64/CentOS/libXi-devel-1.0.1-4.el5_4.i386.rpm
ftp://ftp.pbone.net/mirror/ftp.centos.org/5.5/os/i386/CentOS/libXinerama-devel-1.0.1-2.1.i386.rpm
裝好以後把CutyCapt解壓縮 進資料夾執行 qmake
如果沒設路徑 qmake會裝在 /usr/lib/qt44/bin/qmake
然後make 就會有執行檔了,由於這裡是命令列的環境所以需要程式模擬視窗介面執行這隻程式CutyCapt有寫..只是我不知道去哪抓 xvfb-run 的 rpm pboon 所以 google 到
xvfb-run 直接抓下來解壓縮放到系統上就能用了-_-
如果沒裝 xorg-x11-server-Xvfb 可能也會不行…就 yum install xorg-x11-server-Xvfb 裝一下囉
然後就..可以用了
xvfb-run –server-args="-screen 0, 1024x768x24"
CutyCapt –url=目標網址 –out=檔案名稱.png
指定了模擬出來的解析度大小跟網址與檔案名稱其他參數可以參考下面
—————————————————————————–
Usage: CutyCapt –url=http://www.example.org/ –out=localfile.png
—————————————————————————–
–help Print this help page and exit
–url=<url> The URL to capture (http:…|file:…|…)
–out=<path> The target file (.png|pdf|ps|svg|jpeg|…)
–out-format=<f> Like extension in –out, overrides heuristic
–min-width=<int> Minimal width for the image (default: 800)
–max-wait=<ms> Don’t wait more than (default: 90000, inf: 0)
–delay=<ms> After successful load, wait (default: 0)
–user-styles=<url> Location of user style sheet, if any
–header=<name>:<value> request header; repeatable; some can’t be set
–method=<get|post|put> Specifies the request method (default: get)
–body-string=<string> Unencoded request body (default: none)
–body-base64=<base64> Base64-encoded request body (default: none)
–app-name=<name> appName used in User-Agent; default is none
–app-version=<version> appVers used in User-Agent; default is none
–user-agent=<string> Override the User-Agent header Qt would set
–javascript=<on|off> JavaScript execution (default: on)
–java=<on|off> Java execution (default: unknown)
–plugins=<on|off> Plugin execution (default: unknown)
–private-browsing=<on|off> Private browsing (default: unknown)
–auto-load-images=<on|off> Automatic image loading (default: on)
–js-can-open-windows=<on|off> Script can open windows? (default: unknown)
–js-can-access-clipboard=<on|off> Script clipboard privs (default: unknown)
—————————————————————————–
<f> is svg,ps,pdf,itext,html,rtree,png,jpeg,mng,tiff,gif,bmp,ppm,xbm,xpm
—————————————————————————–
然後出來的圖片就是亂碼的=_=
在隨便裝個中文字體就可以了..
放到 /usr/share/fonts/chinese/TrueType 裡面
or Windows上的ttf ttc好像都可以..
例如..全字庫
http://www.cns11643.gov.tw/AIDB/file.do?path=download%2F%E5%AD%97%E5%9E%8B%E4%B8%8B%E8%BC%89%601q%60%E5%85%A8%E5%AD%97%E5%BA%AB%E6%AD%A3%E5%AE%8B%E9%AB%94%2Fname%2FTW-Sung-95_1_2.ttf
另外一套類似性質的程式
http://khtml2png.sourceforge.net/index.php?page=download
參考資料..
http://befun.520net.to/lover/ea/2009/10/04/php-linux
http://blog.jangmt.com/2009/10/cutycapt.html