jQuery Mobile Note – Hide URL bar

December 11th, 2011

Add:

?View Code JAVASCRIPT
<script type="text/javascript">
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar() {
window.scrollTo(0,1);
}
</script>

jQuery Mobile Note – Stick footer to the bottom

December 11th, 2011
?View Code JAVASCRIPT
<footer data-role="footer" data-position="fixed"><h1>Footer</h1></footer>

Ruby on Rails Notes – Could not find a JavaScript runtime

December 11th, 2011

Install 2 package:

  • gem install execjs --no-ri --no-rdoc
  • gem install therubyracer --no-ri --no-rdoc

Edit Gemfile, add these 2 lines:

  • gem 'execjs'
  • gem 'therubyracer'

Ruby on Rails Notes – Ruby upgrade change.

December 11th, 2011

ruby script/generate model XXXX  => rails generate model XXXX

Firefox Addons – Google Taiwan Search Engine

December 10th, 2011

很久以前就想要找可不可以換一個Firefox上的Search Engine,但是當時好像沒找到Google Taiwan的。

找到東西時還是喜歡看看中文的結果,剛剛想到又去google,真的有人寫Google Taiwan Search Engine的addon!

真是讚!

自製紅油

August 20th, 2011

辣椒粉+花椒粉+15cc水+1茶匙鹽

油在鍋裡燒熱,關火3分鐘後,淋入碗中,最後加1湯匙辣椒醬。

站在雲端的山姆

February 2nd, 2011

又架了一個站,弄了個blog。這次是響應潮流試一試站在雲端的感覺是如何!

因為Amazon佛心來著讓新使用者免費用它的Amazon EC2(Elastic Compute Cloud)一年。不過只能用最基本的配備,但是有的用就好了!不要太挑!

話說網路上有幾篇中文的教學,不過有些想要弄的東西還是要找英文的比較詳細。Amazon裝的系統似乎是Feodra那一派的,平常用慣了Ubuntu,有些設定的位置都要找一下才行。

之後打算把自己用到的一些設定記錄在這裡。


Bad Behavior has blocked 118 access attempts in the last 7 days.