Tag Archives: Postaday2011

Justice: What’s the Right Thing to Do?

作者: Michael J. Sandel

Justice 公義,相信有很多人都已經忘記或者以為係必然的。

但公義是什麼呢,係你一個我一個? 係香港問這問題的人都會被人當傻瓜。

我相信Occupy Wall Street 佔領華爾街一定可以係西方國家產生一定作用,因為那裡係一個可以發展出文明與智慧的地方,一個能夠孕育哲學的地方,一個有99%的人團結的地方。

遠東的小農社會,那99%絕不會否定另外的1%,因為沒有羞恥心的奴才們仍希望有一天可以成為那1%,並且要鞏固那不公義的文化,方可從中拿著數。

還是介紹這書吧。

作者 Michael J. Sandel 係哈佛大學政治哲學教授,由於這課太受歡迎,最後將課堂的內容輯錄成此書。一本帶領你西方政治哲學的歷史發展與基礎。
當中包括

  • Utilitarianism 功利主義
  • Libertarianism 自由主義
  • Markets & Morals 市場與道德

到介紹
Immanuel Kant, John Rawls, Aristotle 的哲學思想,你將認識西方文化如何孕育公義、人權與自由等影響世界的思想。

未看的要看,看過的可以再看。

Drupal – Disable Admin tools menu for other users

I always use Admin Tools in all my Drupal 6 websitea. but by default the Admin tools menu will be shown to all users with Admin Tools access. If you want to limit the it to super admin, apply the following patch.
admin_tools-n934536-d6.patch

Source: Continue reading Drupal – Disable Admin tools menu for other users

Facebook Javascript SDK – Logout

 
Update 2012-01-14: For OAuth 2.0 implementation, please refer to the new post.
Facebook Javascript SDK – Logout with OAuth 2.0

Update 2011-12-19: Since Facebook has updated their authentication system and HTTP to OAuth 2.0 and HTTPS. The following example will not work any more. i will update the post later. For more information, you can refer to Jerry Cain – Updated JavaScript SDK and OAuth 2.0 Roadmap

 

Add the following Javascript function for Facebook logout.

function logoutFacebook() {
  FB.init({ 
    appId:'<?php print YOUR_APP_ID; ?>', cookie:true, 
    status:true, xfbml:true
  });
  FB.logout(function() {
    // Reload the same page after logout
    window.location.reload();
    // Or uncomment the following line to redirect
    //window.location = "https://ykyuen.wordpress.com";
  });
}

Continue reading Facebook Javascript SDK – Logout

Drupal – Remove Revision Information, Authoring information and Publishing options in Node Form

If you want to hide the revision information, authoring information as well as publishing options, the Formfilter module could help.

Download and enable the module and login as admin. you will find out there is a link named as Filter all node forms in any node edit form. Continue reading Drupal – Remove Revision Information, Authoring information and Publishing options in Node Form