Tag Archives: Postaday2011

Maven H2O

Finally i could find some time to release this Maven H2O which i did when i was working in CECID in 2009-2010. It is under GNU General Public License (GPL v2). I fixed some dependencies problem and i found that the Maven repository has changed since i left CECID. It is now ready in GitHub.

Thanks Ronnie who gave me the chance to learn Maven and apply it on the H2O project. Also give thanks to other teammates – Philip, Steve, Patrick, Franz, Jumbo. I missed the time working with you guys in the CECID H2O team.

 

Done =)

哲學的教室 改變人生的14堂課

作者: 小川仁志

其實這書比 Justice: What’s the Right Thing to Do? 更早看完,一直未有時間整理。
哲學其實與生活係息息相關,但很多人可能在經歷人生的時候從未想過,作者小川仁志將這些與生活不可分割的問題交給不同的哲學老師去解答,或者可以幫到你。

  • 「生與死」 by 海德格 Martin Heidegger
  • 「夢想」 by 黑格爾 Georg Wilhelm Friedrich Hegel
  • 「理性和欲望」 by 康德 Immanuel Kant
  • 「煩惱」 by 梅洛龐蒂 Maurice Merleau-Ponty
  • 「我與他人」 by 列維納斯 Emmanuel Levinas
  • 「工作」 by 鄂蘭 Hannah Arendt
  • 「正義」 by 羅爾斯 John Rawls
  • 「戀愛」 by 柏拉圖 Plato/Plátōn
  • 「幸福」 by 阿蘭 Émile-Auguste Chartier/Alain
  • 「權力」 by 傅柯 Michel Foucault
  • 「經濟與貧窮」 by 馬克思 Karl Marx
  • 「自由」 by 沙特 Jean-Paul Sartre
  • 「人生」 by 尼采 Friedrich Nietzsche
  • 「哲學」 by 小川仁志 Ogawa Hitoshi

Drupal – Introduction to Drupal Theming @ 3

Update @ 20130303: For Drupal 7, please refer to the following post.
Drupal 7 – Create your own theme function on your custom block

 

Previous related articles
Drupal – Introduction to Drupal Theming @ 1
Drupal – Introduction to Drupal Theming @ 2

So we could now use a .tpl.php for our customized content. The last thing i would like to mention is about the preprocess function.

Suppose i want to load a node content on the .tpl.php, we can either include the node as an arguments when calling the theme function like. Continue reading Drupal – Introduction to Drupal Theming @ 3

Drupal – Introduction to Drupal Theming @ 2

Yesterday we have talked about the simplest way to theme Drupal content
Drupal – Introduction to Drupal Theming @ 1

But this is not a very good approach because printing inline HTML/PHP inside the theme function is not a good programming practice. This time, i want to create a .tpl.php for the block so we could separate the backend and frontend coding.

Create the following module. Continue reading Drupal – Introduction to Drupal Theming @ 2

Drupal – Add Image to Apache Solr Search Result

Apache Solr is a very good web search engine and it works very well with Drupal. This post shows you how to customize the default pure text search result template by adding node image to each result record.

First, we need to load the corresponding node for each search result. This can be done in the <theme>_preprocess_search_result(&$variables) function. Add it to the template.php. Continue reading Drupal – Add Image to Apache Solr Search Result