Codeigniter2_PHPGrid3
- 3月 18 週五 201122:14
PHPGrid3 module for Codeigniter2
- 12月 14 週二 201016:37
hg (Mercurial)
http://blog.ericsk.org/archives/1247
hg add *
hg clone
hg pull -u
hg add *
hg clone
hg pull -u
- 12月 13 週一 201010:45
Google App Engine with Python
# 目的
這篇文章是在做自己的作品網站,
順便學習Google App Engine以及Python,
這篇文章是在做自己的作品網站,
順便學習Google App Engine以及Python,
- 12月 10 週五 201017:04
git subversion 常用操作指令記錄
# 本文目的
記錄常用的git指令在這裡,
本文會不定時的做更新。
記錄常用的git指令在這裡,
本文會不定時的做更新。
- 9月 06 週一 201018:37
點A標韱不動作,只呼叫javascript函式的標準作法
有些人會使用底下的方式:
《a href="javascript:" onclick="aaa()"》ggg《/a》
但這種作法,有些小browser會有問題,例如pcman。
《a href="javascript:" onclick="aaa()"》ggg《/a》
但這種作法,有些小browser會有問題,例如pcman。
- 11月 09 週一 200920:45
Android 相關連結與資料搜尋
# 目前會以找開發為主的資料
台灣Android中文資源站 / Android黑客開發
這個網站上有很多討論使用及手機週邊的文章
http://android.cool3c.com/article/3886
台灣Android中文資源站 / Android黑客開發
這個網站上有很多討論使用及手機週邊的文章
http://android.cool3c.com/article/3886
- 11月 08 週日 200919:18
Subversion svn指令基本操作(for linux)
# Environment
ubuntu 9.04
# 其它相關的svn作品
ubuntu 9.04
# 其它相關的svn作品
- 11月 08 週日 200918:29
easy linux terminal cd command switch directory
這個是我自己做的工具,方便透過CLI來切換資料夾以及寫程式,
另外,它應該也算是CLI Commander。
# environment
ubuntu 9.04/9.10 desktop
另外,它應該也算是CLI Commander。
# environment
ubuntu 9.04/9.10 desktop
- 11月 08 週日 200916:48
Javascript Templates Tool - Closure Templates
# 參考網址
http://code.google.com/intl/zh-TW/closure/templates/docs/helloworld_js.html
# 目的
跟Smarty差不多,就是把版(html)與程式碼(javascript)分離
# 範例
# 也是看google所寫的範例去使用
# 假設現在在~/ (linux home directory)
$ mkdir worktestdir
$ cd worktestdir
$ wget http://closure-templates.googlecode.com/files/closure-templates-for-javascript-latest.zip
$ unzip closure-templates-for-javascript-latest.zip
解開後會有一些檔案,主要是這兩個檔案
SoyToJsSrcCompiler.jar -> 這個是把soy(template檔案)編輯成js的檔案,當然是需要java,而且是要java6以上的版本
soyutils.js -> html需要在使用這個js,當做範本的engine(雖然google把它當做tool,不過我還是當它是engine)
$ vi simple.soy
{namespace examples.simple}
/**
* Says hello to the world.
*/
{template .helloWorld}
Hello world!
{/template}
*其中上面那一行namespace是一定要加上去的,那是對該範本檔做名稱的定義
把soy檔案編譯成js
$ java -jar SoyToJsSrcCompiler.jar --outputPathFormat simple.js simple.soy
建立html檔案
$ vi index.html
http://code.google.com/intl/zh-TW/closure/templates/docs/helloworld_js.html
# 目的
跟Smarty差不多,就是把版(html)與程式碼(javascript)分離
# 範例
# 也是看google所寫的範例去使用
# 假設現在在~/ (linux home directory)
$ mkdir worktestdir
$ cd worktestdir
$ wget http://closure-templates.googlecode.com/files/closure-templates-for-javascript-latest.zip
$ unzip closure-templates-for-javascript-latest.zip
解開後會有一些檔案,主要是這兩個檔案
SoyToJsSrcCompiler.jar -> 這個是把soy(template檔案)編輯成js的檔案,當然是需要java,而且是要java6以上的版本
soyutils.js -> html需要在使用這個js,當做範本的engine(雖然google把它當做tool,不過我還是當它是engine)
$ vi simple.soy
{namespace examples.simple}
/**
* Says hello to the world.
*/
{template .helloWorld}
Hello world!
{/template}
*其中上面那一行namespace是一定要加上去的,那是對該範本檔做名稱的定義
把soy檔案編譯成js
$ java -jar SoyToJsSrcCompiler.jar --outputPathFormat simple.js simple.soy
建立html檔案
$ vi index.html